From 53983171e045ff95fa3c85890c47d09e966c22e3 Mon Sep 17 00:00:00 2001 From: smarts Date: Mon, 26 Dec 2022 15:52:27 -0800 Subject: [PATCH] Support CancellationToken usage for async API calls --- sdk/src/DocuSign.eSign/Api/AccountsApi.cs | 476 +++++----- .../DocuSign.eSign/Api/AuthenticationApi.cs | 44 +- sdk/src/DocuSign.eSign/Api/BillingApi.cs | 92 +- .../DocuSign.eSign/Api/BulkEnvelopesApi.cs | 76 +- .../DocuSign.eSign/Api/BulkProcessDataApi.cs | 42 +- .../Api/BulkProcessDataSendApi.cs | 24 +- sdk/src/DocuSign.eSign/Api/CloudStorageApi.cs | 50 +- sdk/src/DocuSign.eSign/Api/ConnectApi.cs | 136 +-- sdk/src/DocuSign.eSign/Api/CustomTabsApi.cs | 32 +- sdk/src/DocuSign.eSign/Api/DiagnosticsApi.cs | 44 +- sdk/src/DocuSign.eSign/Api/EmailArchiveApi.cs | 28 +- sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs | 820 +++++++++--------- sdk/src/DocuSign.eSign/Api/FoldersApi.cs | 30 +- sdk/src/DocuSign.eSign/Api/GroupsApi.cs | 64 +- sdk/src/DocuSign.eSign/Api/NotaryApi.cs | 64 +- .../DocuSign.eSign/Api/OrganizationsApi.cs | 6 +- sdk/src/DocuSign.eSign/Api/PowerFormsApi.cs | 54 +- .../DocuSign.eSign/Api/SigningGroupsApi.cs | 56 +- sdk/src/DocuSign.eSign/Api/TemplatesApi.cs | 332 +++---- .../Api/TrustServiceProvidersApi.cs | 6 +- sdk/src/DocuSign.eSign/Api/UsersApi.cs | 204 ++--- sdk/src/DocuSign.eSign/Api/WorkspacesApi.cs | 72 +- .../DocuSign.eSign/Client/DocuSignClient.cs | 5 +- 23 files changed, 1378 insertions(+), 1379 deletions(-) diff --git a/sdk/src/DocuSign.eSign/Api/AccountsApi.cs b/sdk/src/DocuSign.eSign/Api/AccountsApi.cs index 297e1e537..354a0c968 100644 --- a/sdk/src/DocuSign.eSign/Api/AccountsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/AccountsApi.cs @@ -3300,9 +3300,9 @@ public ApiResponse CreateWithHttpInfo(NewAccountDefinition ne /// (optional) /// Options for modifying the behavior of the function. /// Task of NewAccountSummary - public async System.Threading.Tasks.Task CreateAsync(NewAccountDefinition newAccountDefinition = null, AccountsApi.CreateOptions options = null) + public async System.Threading.Tasks.Task CreateAsync(NewAccountDefinition newAccountDefinition = null, AccountsApi.CreateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateAsyncWithHttpInfo(newAccountDefinition, options); + ApiResponse localVarResponse = await CreateAsyncWithHttpInfo(newAccountDefinition, options, cancellationToken); return localVarResponse.Data; } @@ -3313,7 +3313,7 @@ public async System.Threading.Tasks.Task CreateAsync(NewAccou /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (NewAccountSummary) - public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(NewAccountDefinition newAccountDefinition = null, AccountsApi.CreateOptions options = null) + public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(NewAccountDefinition newAccountDefinition = null, AccountsApi.CreateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/accounts"; @@ -3363,7 +3363,7 @@ public async System.Threading.Tasks.Task> CreateA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3426,9 +3426,9 @@ public ApiResponse CreateAccountSignaturesWithHttp /// (optional) /// Options for modifying the behavior of the function. /// Task of AccountSignaturesInformation - public async System.Threading.Tasks.Task CreateAccountSignaturesAsync(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, AccountsApi.CreateAccountSignaturesOptions options = null) + public async System.Threading.Tasks.Task CreateAccountSignaturesAsync(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, AccountsApi.CreateAccountSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateAccountSignaturesAsyncWithHttpInfo(accountId, accountSignaturesInformation, options); + ApiResponse localVarResponse = await CreateAccountSignaturesAsyncWithHttpInfo(accountId, accountSignaturesInformation, options, cancellationToken); return localVarResponse.Data; } @@ -3440,7 +3440,7 @@ public async System.Threading.Tasks.Task CreateAcc /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSignaturesInformation) - public async System.Threading.Tasks.Task> CreateAccountSignaturesAsyncWithHttpInfo(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, AccountsApi.CreateAccountSignaturesOptions options = null) + public async System.Threading.Tasks.Task> CreateAccountSignaturesAsyncWithHttpInfo(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, AccountsApi.CreateAccountSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3494,7 +3494,7 @@ public async System.Threading.Tasks.Task CreateBrandWithHttpInfo(string accountId, Bra /// The external account number (int) or account ID GUID. /// (optional) /// Task of BrandsResponse - public async System.Threading.Tasks.Task CreateBrandAsync(string accountId, Brand brand = null) + public async System.Threading.Tasks.Task CreateBrandAsync(string accountId, Brand brand = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateBrandAsyncWithHttpInfo(accountId, brand); + ApiResponse localVarResponse = await CreateBrandAsyncWithHttpInfo(accountId, brand, cancellationToken); return localVarResponse.Data; } @@ -3559,7 +3559,7 @@ public async System.Threading.Tasks.Task CreateBrandAsync(string /// The external account number (int) or account ID GUID. /// (optional) /// Task of ApiResponse (BrandsResponse) - public async System.Threading.Tasks.Task> CreateBrandAsyncWithHttpInfo(string accountId, Brand brand = null) + public async System.Threading.Tasks.Task> CreateBrandAsyncWithHttpInfo(string accountId, Brand brand = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3609,7 +3609,7 @@ public async System.Threading.Tasks.Task> CreateBran // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3672,9 +3672,9 @@ public ApiResponse CreateCustomFieldWithHttpInfo(string accountId, /// (optional) /// Options for modifying the behavior of the function. /// Task of CustomFields - public async System.Threading.Tasks.Task CreateCustomFieldAsync(string accountId, CustomField customField = null, AccountsApi.CreateCustomFieldOptions options = null) + public async System.Threading.Tasks.Task CreateCustomFieldAsync(string accountId, CustomField customField = null, AccountsApi.CreateCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateCustomFieldAsyncWithHttpInfo(accountId, customField, options); + ApiResponse localVarResponse = await CreateCustomFieldAsyncWithHttpInfo(accountId, customField, options, cancellationToken); return localVarResponse.Data; } @@ -3686,7 +3686,7 @@ public async System.Threading.Tasks.Task CreateCustomFieldAsync(st /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> CreateCustomFieldAsyncWithHttpInfo(string accountId, CustomField customField = null, AccountsApi.CreateCustomFieldOptions options = null) + public async System.Threading.Tasks.Task> CreateCustomFieldAsyncWithHttpInfo(string accountId, CustomField customField = null, AccountsApi.CreateCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3740,7 +3740,7 @@ public async System.Threading.Tasks.Task> CreateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3803,9 +3803,9 @@ public ApiResponse CreatePermissionProfileWithHttpInfo(string /// (optional) /// Options for modifying the behavior of the function. /// Task of PermissionProfile - public async System.Threading.Tasks.Task CreatePermissionProfileAsync(string accountId, PermissionProfile permissionProfile = null, AccountsApi.CreatePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task CreatePermissionProfileAsync(string accountId, PermissionProfile permissionProfile = null, AccountsApi.CreatePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreatePermissionProfileAsyncWithHttpInfo(accountId, permissionProfile, options); + ApiResponse localVarResponse = await CreatePermissionProfileAsyncWithHttpInfo(accountId, permissionProfile, options, cancellationToken); return localVarResponse.Data; } @@ -3817,7 +3817,7 @@ public async System.Threading.Tasks.Task CreatePermissionProf /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (PermissionProfile) - public async System.Threading.Tasks.Task> CreatePermissionProfileAsyncWithHttpInfo(string accountId, PermissionProfile permissionProfile = null, AccountsApi.CreatePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task> CreatePermissionProfileAsyncWithHttpInfo(string accountId, PermissionProfile permissionProfile = null, AccountsApi.CreatePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3871,7 +3871,7 @@ public async System.Threading.Tasks.Task> CreateP // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3919,9 +3919,9 @@ public ApiResponse DeleteWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of void - public async System.Threading.Tasks.Task DeleteAsync(string accountId) + public async System.Threading.Tasks.Task DeleteAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { - await DeleteAsyncWithHttpInfo(accountId); + await DeleteAsyncWithHttpInfo(accountId, cancellationToken); } /// @@ -3930,7 +3930,7 @@ public async System.Threading.Tasks.Task DeleteAsync(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3972,7 +3972,7 @@ public async System.Threading.Tasks.Task> DeleteAsyncWithHtt // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4024,9 +4024,9 @@ public ApiResponse DeleteAccountSignatureWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// The ID of the signature being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteAccountSignatureAsync(string accountId, string signatureId) + public async System.Threading.Tasks.Task DeleteAccountSignatureAsync(string accountId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { - await DeleteAccountSignatureAsyncWithHttpInfo(accountId, signatureId); + await DeleteAccountSignatureAsyncWithHttpInfo(accountId, signatureId, cancellationToken); } /// @@ -4036,7 +4036,7 @@ public async System.Threading.Tasks.Task DeleteAccountSignatureAsync(string acco /// The external account number (int) or account ID Guid. /// The ID of the signature being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteAccountSignatureAsyncWithHttpInfo(string accountId, string signatureId) + public async System.Threading.Tasks.Task> DeleteAccountSignatureAsyncWithHttpInfo(string accountId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4082,7 +4082,7 @@ public async System.Threading.Tasks.Task> DeleteAccountSigna // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4138,9 +4138,9 @@ public ApiResponse DeleteAccountSignatureImageWithHttpInfo(str /// The ID of the signature being accessed. /// One of **signature_image** or **initials_image**. /// Task of AccountSignature - public async System.Threading.Tasks.Task DeleteAccountSignatureImageAsync(string accountId, string signatureId, string imageType) + public async System.Threading.Tasks.Task DeleteAccountSignatureImageAsync(string accountId, string signatureId, string imageType, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await DeleteAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType); + ApiResponse localVarResponse = await DeleteAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType, cancellationToken); return localVarResponse.Data; } @@ -4152,7 +4152,7 @@ public async System.Threading.Tasks.Task DeleteAccountSignatur /// The ID of the signature being accessed. /// One of **signature_image** or **initials_image**. /// Task of ApiResponse (AccountSignature) - public async System.Threading.Tasks.Task> DeleteAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType) + public async System.Threading.Tasks.Task> DeleteAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4202,7 +4202,7 @@ public async System.Threading.Tasks.Task> DeleteAc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4253,7 +4253,7 @@ public ApiResponse DeleteBrandWithHttpInfo(string accountId, string bran /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of void - public async System.Threading.Tasks.Task DeleteBrandAsync(string accountId, string brandId) + public async System.Threading.Tasks.Task DeleteBrandAsync(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { await DeleteBrandAsyncWithHttpInfo(accountId, brandId); } @@ -4265,7 +4265,7 @@ public async System.Threading.Tasks.Task DeleteBrandAsync(string accountId, stri /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteBrandAsyncWithHttpInfo(string accountId, string brandId) + public async System.Threading.Tasks.Task> DeleteBrandAsyncWithHttpInfo(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4311,7 +4311,7 @@ public async System.Threading.Tasks.Task> DeleteBrandAsyncWi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4366,7 +4366,7 @@ public ApiResponse DeleteBrandLogoByTypeWithHttpInfo(string accountId, s /// The unique identifier of a brand. /// One of **Primary**, **Secondary** or **Email**. /// Task of void - public async System.Threading.Tasks.Task DeleteBrandLogoByTypeAsync(string accountId, string brandId, string logoType) + public async System.Threading.Tasks.Task DeleteBrandLogoByTypeAsync(string accountId, string brandId, string logoType, System.Threading.CancellationToken cancellationToken = default) { await DeleteBrandLogoByTypeAsyncWithHttpInfo(accountId, brandId, logoType); } @@ -4379,7 +4379,7 @@ public async System.Threading.Tasks.Task DeleteBrandLogoByTypeAsync(string accou /// The unique identifier of a brand. /// One of **Primary**, **Secondary** or **Email**. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType) + public async System.Threading.Tasks.Task> DeleteBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4429,7 +4429,7 @@ public async System.Threading.Tasks.Task> DeleteBrandLogoByT // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4482,9 +4482,9 @@ public ApiResponse DeleteBrandsWithHttpInfo(string accountId, Br /// The external account number (int) or account ID Guid. /// (optional) /// Task of BrandsResponse - public async System.Threading.Tasks.Task DeleteBrandsAsync(string accountId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task DeleteBrandsAsync(string accountId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await DeleteBrandsAsyncWithHttpInfo(accountId, brandsRequest); + ApiResponse localVarResponse = await DeleteBrandsAsyncWithHttpInfo(accountId, brandsRequest, cancellationToken); return localVarResponse.Data; } @@ -4495,7 +4495,7 @@ public async System.Threading.Tasks.Task DeleteBrandsAsync(strin /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (BrandsResponse) - public async System.Threading.Tasks.Task> DeleteBrandsAsyncWithHttpInfo(string accountId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task> DeleteBrandsAsyncWithHttpInfo(string accountId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4545,7 +4545,7 @@ public async System.Threading.Tasks.Task> DeleteBran // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4600,9 +4600,9 @@ public ApiResponse DeleteCaptiveRecipientWithHttpIn /// /// (optional) /// Task of CaptiveRecipientInformation - public async System.Threading.Tasks.Task DeleteCaptiveRecipientAsync(string accountId, string recipientPart, CaptiveRecipientInformation captiveRecipientInformation = null) + public async System.Threading.Tasks.Task DeleteCaptiveRecipientAsync(string accountId, string recipientPart, CaptiveRecipientInformation captiveRecipientInformation = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await DeleteCaptiveRecipientAsyncWithHttpInfo(accountId, recipientPart, captiveRecipientInformation); + ApiResponse localVarResponse = await DeleteCaptiveRecipientAsyncWithHttpInfo(accountId, recipientPart, captiveRecipientInformation, cancellationToken); return localVarResponse.Data; } @@ -4614,7 +4614,7 @@ public async System.Threading.Tasks.Task DeleteCapt /// /// (optional) /// Task of ApiResponse (CaptiveRecipientInformation) - public async System.Threading.Tasks.Task> DeleteCaptiveRecipientAsyncWithHttpInfo(string accountId, string recipientPart, CaptiveRecipientInformation captiveRecipientInformation = null) + public async System.Threading.Tasks.Task> DeleteCaptiveRecipientAsyncWithHttpInfo(string accountId, string recipientPart, CaptiveRecipientInformation captiveRecipientInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4668,7 +4668,7 @@ public async System.Threading.Tasks.Task DeleteCustomFieldWithHttpInfo(string accountId, strin /// /// Options for modifying the behavior of the function. /// Task of void - public async System.Threading.Tasks.Task DeleteCustomFieldAsync(string accountId, string customFieldId, AccountsApi.DeleteCustomFieldOptions options = null) + public async System.Threading.Tasks.Task DeleteCustomFieldAsync(string accountId, string customFieldId, AccountsApi.DeleteCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - await DeleteCustomFieldAsyncWithHttpInfo(accountId, customFieldId, options); + await DeleteCustomFieldAsyncWithHttpInfo(accountId, customFieldId, options, cancellationToken); } /// @@ -4743,7 +4743,7 @@ public async System.Threading.Tasks.Task DeleteCustomFieldAsync(string accountId /// /// Options for modifying the behavior of the function. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteCustomFieldAsyncWithHttpInfo(string accountId, string customFieldId, AccountsApi.DeleteCustomFieldOptions options = null) + public async System.Threading.Tasks.Task> DeleteCustomFieldAsyncWithHttpInfo(string accountId, string customFieldId, AccountsApi.DeleteCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4793,7 +4793,7 @@ public async System.Threading.Tasks.Task> DeleteCustomFieldA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4842,9 +4842,9 @@ public ApiResponse DeleteENoteConfigurationWithHttpInfo(string accountId /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of void - public async System.Threading.Tasks.Task DeleteENoteConfigurationAsync(string accountId) + public async System.Threading.Tasks.Task DeleteENoteConfigurationAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { - await DeleteENoteConfigurationAsyncWithHttpInfo(accountId); + await DeleteENoteConfigurationAsyncWithHttpInfo(accountId, cancellationToken); } /// @@ -4853,7 +4853,7 @@ public async System.Threading.Tasks.Task DeleteENoteConfigurationAsync(string ac /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteENoteConfigurationAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> DeleteENoteConfigurationAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4895,7 +4895,7 @@ public async System.Threading.Tasks.Task> DeleteENoteConfigu // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4958,9 +4958,9 @@ public ApiResponse DeletePermissionProfileWithHttpInfo(string accountId, /// /// Options for modifying the behavior of the function. /// Task of void - public async System.Threading.Tasks.Task DeletePermissionProfileAsync(string accountId, string permissionProfileId, AccountsApi.DeletePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task DeletePermissionProfileAsync(string accountId, string permissionProfileId, AccountsApi.DeletePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - await DeletePermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, options); + await DeletePermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, options, cancellationToken); } /// @@ -4971,7 +4971,7 @@ public async System.Threading.Tasks.Task DeletePermissionProfileAsync(string acc /// /// Options for modifying the behavior of the function. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, AccountsApi.DeletePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task> DeletePermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, AccountsApi.DeletePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5021,7 +5021,7 @@ public async System.Threading.Tasks.Task> DeletePermissionPr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5071,9 +5071,9 @@ public ApiResponse GetAccountIdentityVerifi /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of AccountIdentityVerificationResponse - public async System.Threading.Tasks.Task GetAccountIdentityVerificationAsync(string accountId) + public async System.Threading.Tasks.Task GetAccountIdentityVerificationAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAccountIdentityVerificationAsyncWithHttpInfo(accountId); + ApiResponse localVarResponse = await GetAccountIdentityVerificationAsyncWithHttpInfo(accountId, cancellationToken); return localVarResponse.Data; } @@ -5083,7 +5083,7 @@ public async System.Threading.Tasks.Task Ge /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (AccountIdentityVerificationResponse) - public async System.Threading.Tasks.Task> GetAccountIdentityVerificationAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetAccountIdentityVerificationAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5125,7 +5125,7 @@ public async System.Threading.Tasks.Task GetAccountInformationWithHttpInfo(string /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of AccountInformation - public async System.Threading.Tasks.Task GetAccountInformationAsync(string accountId, AccountsApi.GetAccountInformationOptions options = null) + public async System.Threading.Tasks.Task GetAccountInformationAsync(string accountId, AccountsApi.GetAccountInformationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAccountInformationAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetAccountInformationAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -5198,7 +5198,7 @@ public async System.Threading.Tasks.Task GetAccountInformati /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountInformation) - public async System.Threading.Tasks.Task> GetAccountInformationAsyncWithHttpInfo(string accountId, AccountsApi.GetAccountInformationOptions options = null) + public async System.Threading.Tasks.Task> GetAccountInformationAsyncWithHttpInfo(string accountId, AccountsApi.GetAccountInformationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5244,7 +5244,7 @@ public async System.Threading.Tasks.Task> GetAcc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5296,9 +5296,9 @@ public ApiResponse GetAccountSignatureWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// The ID of the signature being accessed. /// Task of AccountSignature - public async System.Threading.Tasks.Task GetAccountSignatureAsync(string accountId, string signatureId) + public async System.Threading.Tasks.Task GetAccountSignatureAsync(string accountId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAccountSignatureAsyncWithHttpInfo(accountId, signatureId); + ApiResponse localVarResponse = await GetAccountSignatureAsyncWithHttpInfo(accountId, signatureId, cancellationToken); return localVarResponse.Data; } @@ -5309,7 +5309,7 @@ public async System.Threading.Tasks.Task GetAccountSignatureAs /// The external account number (int) or account ID Guid. /// The ID of the signature being accessed. /// Task of ApiResponse (AccountSignature) - public async System.Threading.Tasks.Task> GetAccountSignatureAsyncWithHttpInfo(string accountId, string signatureId) + public async System.Threading.Tasks.Task> GetAccountSignatureAsyncWithHttpInfo(string accountId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5355,7 +5355,7 @@ public async System.Threading.Tasks.Task> GetAccou // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5421,9 +5421,9 @@ public System.IO.Stream GetAccountSignatureImage(string accountId, string signat /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetAccountSignatureImageAsync(string accountId, string signatureId, string imageType, AccountsApi.GetAccountSignatureImageOptions options = null) + public async System.Threading.Tasks.Task GetAccountSignatureImageAsync(string accountId, string signatureId, string imageType, AccountsApi.GetAccountSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType, options); + ApiResponse localVarResponse = await GetAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType, options, cancellationToken); return localVarResponse.Data; } @@ -5436,7 +5436,7 @@ public System.IO.Stream GetAccountSignatureImage(string accountId, string signat /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType, AccountsApi.GetAccountSignatureImageOptions options = null) + public async System.Threading.Tasks.Task> GetAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType, AccountsApi.GetAccountSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5490,7 +5490,7 @@ public System.IO.Stream GetAccountSignatureImage(string accountId, string signat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5554,9 +5554,9 @@ public ApiResponse GetAccountSignaturesWithHttpInf /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of AccountSignaturesInformation - public async System.Threading.Tasks.Task GetAccountSignaturesAsync(string accountId, AccountsApi.GetAccountSignaturesOptions options = null) + public async System.Threading.Tasks.Task GetAccountSignaturesAsync(string accountId, AccountsApi.GetAccountSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAccountSignaturesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetAccountSignaturesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -5567,7 +5567,7 @@ public async System.Threading.Tasks.Task GetAccoun /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSignaturesInformation) - public async System.Threading.Tasks.Task> GetAccountSignaturesAsyncWithHttpInfo(string accountId, AccountsApi.GetAccountSignaturesOptions options = null) + public async System.Threading.Tasks.Task> GetAccountSignaturesAsyncWithHttpInfo(string accountId, AccountsApi.GetAccountSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5615,7 +5615,7 @@ public async System.Threading.Tasks.Task GetAccountTabSettingsWithHttpInfo(string /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of TabAccountSettings - public async System.Threading.Tasks.Task GetAccountTabSettingsAsync(string accountId) + public async System.Threading.Tasks.Task GetAccountTabSettingsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetAccountTabSettingsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -5676,7 +5676,7 @@ public async System.Threading.Tasks.Task GetAccountTabSettin /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (TabAccountSettings) - public async System.Threading.Tasks.Task> GetAccountTabSettingsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetAccountTabSettingsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5718,7 +5718,7 @@ public async System.Threading.Tasks.Task> GetAcc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5767,7 +5767,7 @@ public ApiResponse GetAllPaymentGatewayAccountsWithH /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of PaymentGatewayAccountsInfo - public async System.Threading.Tasks.Task GetAllPaymentGatewayAccountsAsync(string accountId) + public async System.Threading.Tasks.Task GetAllPaymentGatewayAccountsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetAllPaymentGatewayAccountsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -5779,7 +5779,7 @@ public async System.Threading.Tasks.Task GetAllPayme /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (PaymentGatewayAccountsInfo) - public async System.Threading.Tasks.Task> GetAllPaymentGatewayAccountsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetAllPaymentGatewayAccountsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5821,7 +5821,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5881,9 +5881,9 @@ public ApiResponse GetBillingChargesWithHttpInfo(string a /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BillingChargeResponse - public async System.Threading.Tasks.Task GetBillingChargesAsync(string accountId, AccountsApi.GetBillingChargesOptions options = null) + public async System.Threading.Tasks.Task GetBillingChargesAsync(string accountId, AccountsApi.GetBillingChargesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBillingChargesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetBillingChargesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -5894,7 +5894,7 @@ public async System.Threading.Tasks.Task GetBillingCharge /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BillingChargeResponse) - public async System.Threading.Tasks.Task> GetBillingChargesAsyncWithHttpInfo(string accountId, AccountsApi.GetBillingChargesOptions options = null) + public async System.Threading.Tasks.Task> GetBillingChargesAsyncWithHttpInfo(string accountId, AccountsApi.GetBillingChargesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5940,7 +5940,7 @@ public async System.Threading.Tasks.Task> Get // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6005,9 +6005,9 @@ public ApiResponse GetBrandWithHttpInfo(string accountId, string brandId, /// The unique identifier of a brand. /// Options for modifying the behavior of the function. /// Task of Brand - public async System.Threading.Tasks.Task GetBrandAsync(string accountId, string brandId, AccountsApi.GetBrandOptions options = null) + public async System.Threading.Tasks.Task GetBrandAsync(string accountId, string brandId, AccountsApi.GetBrandOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBrandAsyncWithHttpInfo(accountId, brandId, options); + ApiResponse localVarResponse = await GetBrandAsyncWithHttpInfo(accountId, brandId, options, cancellationToken); return localVarResponse.Data; } @@ -6019,7 +6019,7 @@ public async System.Threading.Tasks.Task GetBrandAsync(string accountId, /// The unique identifier of a brand. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Brand) - public async System.Threading.Tasks.Task> GetBrandAsyncWithHttpInfo(string accountId, string brandId, AccountsApi.GetBrandOptions options = null) + public async System.Threading.Tasks.Task> GetBrandAsyncWithHttpInfo(string accountId, string brandId, AccountsApi.GetBrandOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6070,7 +6070,7 @@ public async System.Threading.Tasks.Task> GetBrandAsyncWithHt // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6121,7 +6121,7 @@ public ApiResponse GetBrandExportFileWithHttpInfo(string accountId, stri /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of void - public async System.Threading.Tasks.Task GetBrandExportFileAsync(string accountId, string brandId) + public async System.Threading.Tasks.Task GetBrandExportFileAsync(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { await GetBrandExportFileAsyncWithHttpInfo(accountId, brandId); } @@ -6133,7 +6133,7 @@ public async System.Threading.Tasks.Task GetBrandExportFileAsync(string accountI /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetBrandExportFileAsyncWithHttpInfo(string accountId, string brandId) + public async System.Threading.Tasks.Task> GetBrandExportFileAsyncWithHttpInfo(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6179,7 +6179,7 @@ public async System.Threading.Tasks.Task> GetBrandExportFile // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6235,7 +6235,7 @@ public System.IO.Stream GetBrandLogoByType(string accountId, string brandId, str /// The unique identifier of a brand. /// One of **Primary**, **Secondary** or **Email**. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetBrandLogoByTypeAsync(string accountId, string brandId, string logoType) + public async System.Threading.Tasks.Task GetBrandLogoByTypeAsync(string accountId, string brandId, string logoType, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBrandLogoByTypeAsyncWithHttpInfo(accountId, brandId, logoType); return localVarResponse.Data; @@ -6249,7 +6249,7 @@ public System.IO.Stream GetBrandLogoByType(string accountId, string brandId, str /// The unique identifier of a brand. /// One of **Primary**, **Secondary** or **Email**. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType) + public async System.Threading.Tasks.Task> GetBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6299,7 +6299,7 @@ public System.IO.Stream GetBrandLogoByType(string accountId, string brandId, str // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6351,7 +6351,7 @@ public ApiResponse GetBrandResourcesWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of BrandResourcesList - public async System.Threading.Tasks.Task GetBrandResourcesAsync(string accountId, string brandId) + public async System.Threading.Tasks.Task GetBrandResourcesAsync(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBrandResourcesAsyncWithHttpInfo(accountId, brandId); return localVarResponse.Data; @@ -6364,7 +6364,7 @@ public async System.Threading.Tasks.Task GetBrandResourcesAs /// The external account number (int) or account ID Guid. /// The unique identifier of a brand. /// Task of ApiResponse (BrandResourcesList) - public async System.Threading.Tasks.Task> GetBrandResourcesAsyncWithHttpInfo(string accountId, string brandId) + public async System.Threading.Tasks.Task> GetBrandResourcesAsyncWithHttpInfo(string accountId, string brandId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6410,7 +6410,7 @@ public async System.Threading.Tasks.Task> GetBra // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6477,9 +6477,9 @@ public ApiResponse GetBrandResourcesByContentTypeWithHttpInfo(string acc /// /// Options for modifying the behavior of the function. /// Task of void - public async System.Threading.Tasks.Task GetBrandResourcesByContentTypeAsync(string accountId, string brandId, string resourceContentType, AccountsApi.GetBrandResourcesByContentTypeOptions options = null) + public async System.Threading.Tasks.Task GetBrandResourcesByContentTypeAsync(string accountId, string brandId, string resourceContentType, AccountsApi.GetBrandResourcesByContentTypeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - await GetBrandResourcesByContentTypeAsyncWithHttpInfo(accountId, brandId, resourceContentType, options); + await GetBrandResourcesByContentTypeAsyncWithHttpInfo(accountId, brandId, resourceContentType, options, cancellationToken); } /// @@ -6491,7 +6491,7 @@ public async System.Threading.Tasks.Task GetBrandResourcesByContentTypeAsync(str /// /// Options for modifying the behavior of the function. /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetBrandResourcesByContentTypeAsyncWithHttpInfo(string accountId, string brandId, string resourceContentType, AccountsApi.GetBrandResourcesByContentTypeOptions options = null) + public async System.Threading.Tasks.Task> GetBrandResourcesByContentTypeAsyncWithHttpInfo(string accountId, string brandId, string resourceContentType, AccountsApi.GetBrandResourcesByContentTypeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6546,7 +6546,7 @@ public async System.Threading.Tasks.Task> GetBrandResourcesB // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6599,7 +6599,7 @@ public ApiResponse GetConsumerDisclosureWithHttpInfo(string /// The external account number (int) or account ID Guid. /// The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. /// Task of ConsumerDisclosure - public async System.Threading.Tasks.Task GetConsumerDisclosureAsync(string accountId, string langCode) + public async System.Threading.Tasks.Task GetConsumerDisclosureAsync(string accountId, string langCode, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetConsumerDisclosureAsyncWithHttpInfo(accountId, langCode); return localVarResponse.Data; @@ -6612,7 +6612,7 @@ public async System.Threading.Tasks.Task GetConsumerDisclosu /// The external account number (int) or account ID Guid. /// The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. /// Task of ApiResponse (ConsumerDisclosure) - public async System.Threading.Tasks.Task> GetConsumerDisclosureAsyncWithHttpInfo(string accountId, string langCode) + public async System.Threading.Tasks.Task> GetConsumerDisclosureAsyncWithHttpInfo(string accountId, string langCode, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6658,7 +6658,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6718,9 +6718,9 @@ public ApiResponse GetConsumerDisclosureDefaultWithHttpInfo( /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ConsumerDisclosure - public async System.Threading.Tasks.Task GetConsumerDisclosureDefaultAsync(string accountId, AccountsApi.GetConsumerDisclosureDefaultOptions options = null) + public async System.Threading.Tasks.Task GetConsumerDisclosureDefaultAsync(string accountId, AccountsApi.GetConsumerDisclosureDefaultOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetConsumerDisclosureDefaultAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetConsumerDisclosureDefaultAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -6731,7 +6731,7 @@ public async System.Threading.Tasks.Task GetConsumerDisclosu /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConsumerDisclosure) - public async System.Threading.Tasks.Task> GetConsumerDisclosureDefaultAsyncWithHttpInfo(string accountId, AccountsApi.GetConsumerDisclosureDefaultOptions options = null) + public async System.Threading.Tasks.Task> GetConsumerDisclosureDefaultAsyncWithHttpInfo(string accountId, AccountsApi.GetConsumerDisclosureDefaultOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6777,7 +6777,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6826,7 +6826,7 @@ public ApiResponse GetENoteConfigurationWithHttpInfo(string /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ENoteConfiguration - public async System.Threading.Tasks.Task GetENoteConfigurationAsync(string accountId) + public async System.Threading.Tasks.Task GetENoteConfigurationAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetENoteConfigurationAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -6838,7 +6838,7 @@ public async System.Threading.Tasks.Task GetENoteConfigurati /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (ENoteConfiguration) - public async System.Threading.Tasks.Task> GetENoteConfigurationAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetENoteConfigurationAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6880,7 +6880,7 @@ public async System.Threading.Tasks.Task> GetENo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6929,7 +6929,7 @@ public ApiResponse GetEnvelopePurgeConfigurationWith /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of EnvelopePurgeConfiguration - public async System.Threading.Tasks.Task GetEnvelopePurgeConfigurationAsync(string accountId) + public async System.Threading.Tasks.Task GetEnvelopePurgeConfigurationAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopePurgeConfigurationAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -6941,7 +6941,7 @@ public async System.Threading.Tasks.Task GetEnvelope /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (EnvelopePurgeConfiguration) - public async System.Threading.Tasks.Task> GetEnvelopePurgeConfigurationAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetEnvelopePurgeConfigurationAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6983,7 +6983,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7032,7 +7032,7 @@ public ApiResponse GetFavoriteTemplatesWithHttpInfo(strin /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of FavoriteTemplatesInfo - public async System.Threading.Tasks.Task GetFavoriteTemplatesAsync(string accountId) + public async System.Threading.Tasks.Task GetFavoriteTemplatesAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetFavoriteTemplatesAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -7044,7 +7044,7 @@ public async System.Threading.Tasks.Task GetFavoriteTempl /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (FavoriteTemplatesInfo) - public async System.Threading.Tasks.Task> GetFavoriteTemplatesAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetFavoriteTemplatesAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7086,7 +7086,7 @@ public async System.Threading.Tasks.Task> Get // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7135,7 +7135,7 @@ public ApiResponse GetNotificationDefaultsWithHttpInfo(str /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of NotificationDefaults - public async System.Threading.Tasks.Task GetNotificationDefaultsAsync(string accountId) + public async System.Threading.Tasks.Task GetNotificationDefaultsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetNotificationDefaultsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -7147,7 +7147,7 @@ public async System.Threading.Tasks.Task GetNotificationDe /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (NotificationDefaults) - public async System.Threading.Tasks.Task> GetNotificationDefaultsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetNotificationDefaultsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7189,7 +7189,7 @@ public async System.Threading.Tasks.Task> GetN // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7238,7 +7238,7 @@ public ApiResponse GetPasswordRulesWithHttpInfo(string acc /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of AccountPasswordRules - public async System.Threading.Tasks.Task GetPasswordRulesAsync(string accountId) + public async System.Threading.Tasks.Task GetPasswordRulesAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPasswordRulesAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -7250,7 +7250,7 @@ public async System.Threading.Tasks.Task GetPasswordRulesA /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (AccountPasswordRules) - public async System.Threading.Tasks.Task> GetPasswordRulesAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetPasswordRulesAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7292,7 +7292,7 @@ public async System.Threading.Tasks.Task> GetP // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7338,7 +7338,7 @@ public ApiResponse GetPasswordRules_0WithHttpInfo() /// /// Thrown when fails to make API call /// Task of UserPasswordRules - public async System.Threading.Tasks.Task GetPasswordRules_0Async() + public async System.Threading.Tasks.Task GetPasswordRules_0Async(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPasswordRules_0AsyncWithHttpInfo(); return localVarResponse.Data; @@ -7349,7 +7349,7 @@ public async System.Threading.Tasks.Task GetPasswordRules_0As /// /// Thrown when fails to make API call /// Task of ApiResponse (UserPasswordRules) - public async System.Threading.Tasks.Task> GetPasswordRules_0AsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetPasswordRules_0AsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/password_rules"; @@ -7387,7 +7387,7 @@ public async System.Threading.Tasks.Task> GetPass // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7450,9 +7450,9 @@ public ApiResponse GetPermissionProfileWithHttpInfo(string ac /// /// Options for modifying the behavior of the function. /// Task of PermissionProfile - public async System.Threading.Tasks.Task GetPermissionProfileAsync(string accountId, string permissionProfileId, AccountsApi.GetPermissionProfileOptions options = null) + public async System.Threading.Tasks.Task GetPermissionProfileAsync(string accountId, string permissionProfileId, AccountsApi.GetPermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetPermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, options); + ApiResponse localVarResponse = await GetPermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, options, cancellationToken); return localVarResponse.Data; } @@ -7464,7 +7464,7 @@ public async System.Threading.Tasks.Task GetPermissionProfile /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (PermissionProfile) - public async System.Threading.Tasks.Task> GetPermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, AccountsApi.GetPermissionProfileOptions options = null) + public async System.Threading.Tasks.Task> GetPermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, AccountsApi.GetPermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7514,7 +7514,7 @@ public async System.Threading.Tasks.Task> GetPerm // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7560,7 +7560,7 @@ public ApiResponse GetProvisioningWithHttpInfo() /// /// Thrown when fails to make API call /// Task of ProvisioningInformation - public async System.Threading.Tasks.Task GetProvisioningAsync() + public async System.Threading.Tasks.Task GetProvisioningAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetProvisioningAsyncWithHttpInfo(); return localVarResponse.Data; @@ -7571,7 +7571,7 @@ public async System.Threading.Tasks.Task GetProvisionin /// /// Thrown when fails to make API call /// Task of ApiResponse (ProvisioningInformation) - public async System.Threading.Tasks.Task> GetProvisioningAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetProvisioningAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/accounts/provisioning"; @@ -7609,7 +7609,7 @@ public async System.Threading.Tasks.Task> G // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7658,7 +7658,7 @@ public ApiResponse GetSupportedLanguagesWithHttpInfo(string /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of SupportedLanguages - public async System.Threading.Tasks.Task GetSupportedLanguagesAsync(string accountId) + public async System.Threading.Tasks.Task GetSupportedLanguagesAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetSupportedLanguagesAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -7670,7 +7670,7 @@ public async System.Threading.Tasks.Task GetSupportedLanguag /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (SupportedLanguages) - public async System.Threading.Tasks.Task> GetSupportedLanguagesAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetSupportedLanguagesAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7712,7 +7712,7 @@ public async System.Threading.Tasks.Task> GetSup // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7761,7 +7761,7 @@ public ApiResponse GetWatermarkWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of Watermark - public async System.Threading.Tasks.Task GetWatermarkAsync(string accountId) + public async System.Threading.Tasks.Task GetWatermarkAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetWatermarkAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -7773,7 +7773,7 @@ public async System.Threading.Tasks.Task GetWatermarkAsync(string acc /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (Watermark) - public async System.Threading.Tasks.Task> GetWatermarkAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetWatermarkAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7815,7 +7815,7 @@ public async System.Threading.Tasks.Task> GetWatermarkAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7867,7 +7867,7 @@ public ApiResponse GetWatermarkPreviewWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// (optional) /// Task of Watermark - public async System.Threading.Tasks.Task GetWatermarkPreviewAsync(string accountId, Watermark watermark = null) + public async System.Threading.Tasks.Task GetWatermarkPreviewAsync(string accountId, Watermark watermark = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetWatermarkPreviewAsyncWithHttpInfo(accountId, watermark); return localVarResponse.Data; @@ -7880,7 +7880,7 @@ public async System.Threading.Tasks.Task GetWatermarkPreviewAsync(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (Watermark) - public async System.Threading.Tasks.Task> GetWatermarkPreviewAsyncWithHttpInfo(string accountId, Watermark watermark = null) + public async System.Threading.Tasks.Task> GetWatermarkPreviewAsyncWithHttpInfo(string accountId, Watermark watermark = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7930,7 +7930,7 @@ public async System.Threading.Tasks.Task> GetWatermarkPre // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7992,9 +7992,9 @@ public ApiResponse ListBrandsWithHttpInfo(string accountId, Acco /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BrandsResponse - public async System.Threading.Tasks.Task ListBrandsAsync(string accountId, AccountsApi.ListBrandsOptions options = null) + public async System.Threading.Tasks.Task ListBrandsAsync(string accountId, AccountsApi.ListBrandsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListBrandsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListBrandsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -8005,7 +8005,7 @@ public async System.Threading.Tasks.Task ListBrandsAsync(string /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BrandsResponse) - public async System.Threading.Tasks.Task> ListBrandsAsyncWithHttpInfo(string accountId, AccountsApi.ListBrandsOptions options = null) + public async System.Threading.Tasks.Task> ListBrandsAsyncWithHttpInfo(string accountId, AccountsApi.ListBrandsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8052,7 +8052,7 @@ public async System.Threading.Tasks.Task> ListBrands // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8101,7 +8101,7 @@ public ApiResponse ListCustomFieldsWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of CustomFields - public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId) + public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListCustomFieldsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -8113,7 +8113,7 @@ public async System.Threading.Tasks.Task ListCustomFieldsAsync(str /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8155,7 +8155,7 @@ public async System.Threading.Tasks.Task> ListCustomFi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8215,9 +8215,9 @@ public ApiResponse ListPermissionsWithHttpInfo(str /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of PermissionProfileInformation - public async System.Threading.Tasks.Task ListPermissionsAsync(string accountId, AccountsApi.ListPermissionsOptions options = null) + public async System.Threading.Tasks.Task ListPermissionsAsync(string accountId, AccountsApi.ListPermissionsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListPermissionsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListPermissionsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -8228,7 +8228,7 @@ public async System.Threading.Tasks.Task ListPermi /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PermissionProfileInformation) - public async System.Threading.Tasks.Task> ListPermissionsAsyncWithHttpInfo(string accountId, AccountsApi.ListPermissionsOptions options = null) + public async System.Threading.Tasks.Task> ListPermissionsAsyncWithHttpInfo(string accountId, AccountsApi.ListPermissionsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8274,7 +8274,7 @@ public async System.Threading.Tasks.Task ListRecipientNamesByEmailWithHttpInfo /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of RecipientNamesResponse - public async System.Threading.Tasks.Task ListRecipientNamesByEmailAsync(string accountId, AccountsApi.ListRecipientNamesByEmailOptions options = null) + public async System.Threading.Tasks.Task ListRecipientNamesByEmailAsync(string accountId, AccountsApi.ListRecipientNamesByEmailOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListRecipientNamesByEmailAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListRecipientNamesByEmailAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -8347,7 +8347,7 @@ public async System.Threading.Tasks.Task ListRecipientNa /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (RecipientNamesResponse) - public async System.Threading.Tasks.Task> ListRecipientNamesByEmailAsyncWithHttpInfo(string accountId, AccountsApi.ListRecipientNamesByEmailOptions options = null) + public async System.Threading.Tasks.Task> ListRecipientNamesByEmailAsyncWithHttpInfo(string accountId, AccountsApi.ListRecipientNamesByEmailOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8393,7 +8393,7 @@ public async System.Threading.Tasks.Task> Li // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8442,7 +8442,7 @@ public ApiResponse ListSettingsWithHttpInfo(string a /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of AccountSettingsInformation - public async System.Threading.Tasks.Task ListSettingsAsync(string accountId) + public async System.Threading.Tasks.Task ListSettingsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListSettingsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -8454,7 +8454,7 @@ public async System.Threading.Tasks.Task ListSetting /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (AccountSettingsInformation) - public async System.Threading.Tasks.Task> ListSettingsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListSettingsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8496,7 +8496,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8570,9 +8570,9 @@ public ApiResponse ListSharedAccessWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of AccountSharedAccess - public async System.Threading.Tasks.Task ListSharedAccessAsync(string accountId, AccountsApi.ListSharedAccessOptions options = null) + public async System.Threading.Tasks.Task ListSharedAccessAsync(string accountId, AccountsApi.ListSharedAccessOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListSharedAccessAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListSharedAccessAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -8583,7 +8583,7 @@ public async System.Threading.Tasks.Task ListSharedAccessAs /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSharedAccess) - public async System.Threading.Tasks.Task> ListSharedAccessAsyncWithHttpInfo(string accountId, AccountsApi.ListSharedAccessOptions options = null) + public async System.Threading.Tasks.Task> ListSharedAccessAsyncWithHttpInfo(string accountId, AccountsApi.ListSharedAccessOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8636,7 +8636,7 @@ public async System.Threading.Tasks.Task> ListS // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8685,7 +8685,7 @@ public ApiResponse ListSignatureProvidersWithHttpInfo /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of AccountSignatureProviders - public async System.Threading.Tasks.Task ListSignatureProvidersAsync(string accountId) + public async System.Threading.Tasks.Task ListSignatureProvidersAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListSignatureProvidersAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -8697,7 +8697,7 @@ public async System.Threading.Tasks.Task ListSignatur /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (AccountSignatureProviders) - public async System.Threading.Tasks.Task> ListSignatureProvidersAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListSignatureProvidersAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8739,7 +8739,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8788,7 +8788,7 @@ public ApiResponse ListUnsupportedFileTypesWithHttpInfo(string acc /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of FileTypeList - public async System.Threading.Tasks.Task ListUnsupportedFileTypesAsync(string accountId) + public async System.Threading.Tasks.Task ListUnsupportedFileTypesAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListUnsupportedFileTypesAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -8800,7 +8800,7 @@ public async System.Threading.Tasks.Task ListUnsupportedFileTypesA /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (FileTypeList) - public async System.Threading.Tasks.Task> ListUnsupportedFileTypesAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListUnsupportedFileTypesAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8842,7 +8842,7 @@ public async System.Threading.Tasks.Task> ListUnsuppor // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8894,7 +8894,7 @@ public ApiResponse UnFavoriteTemplateWithHttpInfo(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of FavoriteTemplatesInfo - public async System.Threading.Tasks.Task UnFavoriteTemplateAsync(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null) + public async System.Threading.Tasks.Task UnFavoriteTemplateAsync(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UnFavoriteTemplateAsyncWithHttpInfo(accountId, favoriteTemplatesInfo); return localVarResponse.Data; @@ -8907,7 +8907,7 @@ public async System.Threading.Tasks.Task UnFavoriteTempla /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (FavoriteTemplatesInfo) - public async System.Threading.Tasks.Task> UnFavoriteTemplateAsyncWithHttpInfo(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null) + public async System.Threading.Tasks.Task> UnFavoriteTemplateAsyncWithHttpInfo(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8957,7 +8957,7 @@ public async System.Threading.Tasks.Task> UnF // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9009,7 +9009,7 @@ public ApiResponse UpdateAccountSignatureWithHttpI /// The external account number (int) or account ID Guid. /// (optional) /// Task of AccountSignaturesInformation - public async System.Threading.Tasks.Task UpdateAccountSignatureAsync(string accountId, AccountSignaturesInformation accountSignaturesInformation = null) + public async System.Threading.Tasks.Task UpdateAccountSignatureAsync(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateAccountSignatureAsyncWithHttpInfo(accountId, accountSignaturesInformation); return localVarResponse.Data; @@ -9022,7 +9022,7 @@ public async System.Threading.Tasks.Task UpdateAcc /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (AccountSignaturesInformation) - public async System.Threading.Tasks.Task> UpdateAccountSignatureAsyncWithHttpInfo(string accountId, AccountSignaturesInformation accountSignaturesInformation = null) + public async System.Threading.Tasks.Task> UpdateAccountSignatureAsyncWithHttpInfo(string accountId, AccountSignaturesInformation accountSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9072,7 +9072,7 @@ public async System.Threading.Tasks.Task UpdateAccountSignatureByIdWithHttpInfo(stri /// (optional) /// Options for modifying the behavior of the function. /// Task of AccountSignature - public async System.Threading.Tasks.Task UpdateAccountSignatureByIdAsync(string accountId, string signatureId, AccountSignatureDefinition accountSignatureDefinition = null, AccountsApi.UpdateAccountSignatureByIdOptions options = null) + public async System.Threading.Tasks.Task UpdateAccountSignatureByIdAsync(string accountId, string signatureId, AccountSignatureDefinition accountSignatureDefinition = null, AccountsApi.UpdateAccountSignatureByIdOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateAccountSignatureByIdAsyncWithHttpInfo(accountId, signatureId, accountSignatureDefinition, options); + ApiResponse localVarResponse = await UpdateAccountSignatureByIdAsyncWithHttpInfo(accountId, signatureId, accountSignatureDefinition, options, cancellationToken); return localVarResponse.Data; } @@ -9153,7 +9153,7 @@ public async System.Threading.Tasks.Task UpdateAccountSignatur /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSignature) - public async System.Threading.Tasks.Task> UpdateAccountSignatureByIdAsyncWithHttpInfo(string accountId, string signatureId, AccountSignatureDefinition accountSignatureDefinition = null, AccountsApi.UpdateAccountSignatureByIdOptions options = null) + public async System.Threading.Tasks.Task> UpdateAccountSignatureByIdAsyncWithHttpInfo(string accountId, string signatureId, AccountSignatureDefinition accountSignatureDefinition = null, AccountsApi.UpdateAccountSignatureByIdOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9211,7 +9211,7 @@ public async System.Threading.Tasks.Task> UpdateAc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9277,9 +9277,9 @@ public ApiResponse UpdateAccountSignatureImageWithHttpInfo(str /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of AccountSignature - public async System.Threading.Tasks.Task UpdateAccountSignatureImageAsync(string accountId, string signatureId, string imageType, AccountsApi.UpdateAccountSignatureImageOptions options = null) + public async System.Threading.Tasks.Task UpdateAccountSignatureImageAsync(string accountId, string signatureId, string imageType, AccountsApi.UpdateAccountSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType, options); + ApiResponse localVarResponse = await UpdateAccountSignatureImageAsyncWithHttpInfo(accountId, signatureId, imageType, options, cancellationToken); return localVarResponse.Data; } @@ -9292,7 +9292,7 @@ public async System.Threading.Tasks.Task UpdateAccountSignatur /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSignature) - public async System.Threading.Tasks.Task> UpdateAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType, AccountsApi.UpdateAccountSignatureImageOptions options = null) + public async System.Threading.Tasks.Task> UpdateAccountSignatureImageAsyncWithHttpInfo(string accountId, string signatureId, string imageType, AccountsApi.UpdateAccountSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9347,7 +9347,7 @@ public async System.Threading.Tasks.Task> UpdateAc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9399,7 +9399,7 @@ public ApiResponse UpdateAccountTabSettingsWithHttpInfo(stri /// The external account number (int) or account ID Guid. /// (optional) /// Task of TabAccountSettings - public async System.Threading.Tasks.Task UpdateAccountTabSettingsAsync(string accountId, TabAccountSettings tabAccountSettings = null) + public async System.Threading.Tasks.Task UpdateAccountTabSettingsAsync(string accountId, TabAccountSettings tabAccountSettings = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateAccountTabSettingsAsyncWithHttpInfo(accountId, tabAccountSettings); return localVarResponse.Data; @@ -9412,7 +9412,7 @@ public async System.Threading.Tasks.Task UpdateAccountTabSet /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (TabAccountSettings) - public async System.Threading.Tasks.Task> UpdateAccountTabSettingsAsyncWithHttpInfo(string accountId, TabAccountSettings tabAccountSettings = null) + public async System.Threading.Tasks.Task> UpdateAccountTabSettingsAsyncWithHttpInfo(string accountId, TabAccountSettings tabAccountSettings = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9462,7 +9462,7 @@ public async System.Threading.Tasks.Task> Update // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9528,9 +9528,9 @@ public ApiResponse UpdateBrandWithHttpInfo(string accountId, string brand /// (optional) /// Options for modifying the behavior of the function. /// Task of Brand - public async System.Threading.Tasks.Task UpdateBrandAsync(string accountId, string brandId, Brand brand = null, AccountsApi.UpdateBrandOptions options = null) + public async System.Threading.Tasks.Task UpdateBrandAsync(string accountId, string brandId, Brand brand = null, AccountsApi.UpdateBrandOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateBrandAsyncWithHttpInfo(accountId, brandId, brand, options); + ApiResponse localVarResponse = await UpdateBrandAsyncWithHttpInfo(accountId, brandId, brand, options, cancellationToken); return localVarResponse.Data; } @@ -9543,7 +9543,7 @@ public async System.Threading.Tasks.Task UpdateBrandAsync(string accountI /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (Brand) - public async System.Threading.Tasks.Task> UpdateBrandAsyncWithHttpInfo(string accountId, string brandId, Brand brand = null, AccountsApi.UpdateBrandOptions options = null) + public async System.Threading.Tasks.Task> UpdateBrandAsyncWithHttpInfo(string accountId, string brandId, Brand brand = null, AccountsApi.UpdateBrandOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9601,7 +9601,7 @@ public async System.Threading.Tasks.Task> UpdateBrandAsyncWit // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9658,7 +9658,7 @@ public ApiResponse UpdateBrandLogoByTypeWithHttpInfo(string accountId, s /// The type of logo. Valid values are: - `primary` - `secondary` - `email` /// Brand logo binary Stream. Supported formats: JPG, GIF, PNG. Maximum file size: 300 KB. Recommended dimensions: 296 x 76 pixels (larger images will be resized). Changes may take up to one hour to display in all places /// Task of void - public async System.Threading.Tasks.Task UpdateBrandLogoByTypeAsync(string accountId, string brandId, string logoType, byte[] logoFileBytes) + public async System.Threading.Tasks.Task UpdateBrandLogoByTypeAsync(string accountId, string brandId, string logoType, byte[] logoFileBytes, System.Threading.CancellationToken cancellationToken = default) { await UpdateBrandLogoByTypeAsyncWithHttpInfo(accountId, brandId, logoType, logoFileBytes); } @@ -9672,7 +9672,7 @@ public async System.Threading.Tasks.Task UpdateBrandLogoByTypeAsync(string accou /// The type of logo. Valid values are: - `primary` - `secondary` - `email` /// Brand logo binary Stream. Supported formats: JPG, GIF, PNG. Maximum file size: 300 KB. Recommended dimensions: 296 x 76 pixels (larger images will be resized). Changes may take up to one hour to display in all places /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType, byte[] logoFileBytes) + public async System.Threading.Tasks.Task> UpdateBrandLogoByTypeAsyncWithHttpInfo(string accountId, string brandId, string logoType, byte[] logoFileBytes, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9734,7 +9734,7 @@ public async System.Threading.Tasks.Task> UpdateBrandLogoByT // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9793,7 +9793,7 @@ public ApiResponse UpdateBrandResourcesByContentTypeWithHttpInfo /// The type of brand resource file that you are updating. Valid values are: - `sending` - `signing` - `email` - `signing_captive` /// Brand resource XML file. /// Task of BrandResources - public async System.Threading.Tasks.Task UpdateBrandResourcesByContentTypeAsync(string accountId, string brandId, string resourceContentType, byte[] fileXml) + public async System.Threading.Tasks.Task UpdateBrandResourcesByContentTypeAsync(string accountId, string brandId, string resourceContentType, byte[] fileXml, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateBrandResourcesByContentTypeAsyncWithHttpInfo(accountId, brandId, resourceContentType, fileXml); return localVarResponse.Data; @@ -9808,7 +9808,7 @@ public async System.Threading.Tasks.Task UpdateBrandResourcesByC /// The type of brand resource file that you are updating. Valid values are: - `sending` - `signing` - `email` - `signing_captive` /// Brand resource XML file. /// Task of ApiResponse (BrandResources) - public async System.Threading.Tasks.Task> UpdateBrandResourcesByContentTypeAsyncWithHttpInfo(string accountId, string brandId, string resourceContentType, byte[] fileXml) + public async System.Threading.Tasks.Task> UpdateBrandResourcesByContentTypeAsyncWithHttpInfo(string accountId, string brandId, string resourceContentType, byte[] fileXml, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9871,7 +9871,7 @@ public async System.Threading.Tasks.Task> UpdateBran // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9937,9 +9937,9 @@ public ApiResponse UpdateConsumerDisclosureWithHttpInfo(stri /// (optional) /// Options for modifying the behavior of the function. /// Task of ConsumerDisclosure - public async System.Threading.Tasks.Task UpdateConsumerDisclosureAsync(string accountId, string langCode, ConsumerDisclosure consumerDisclosure = null, AccountsApi.UpdateConsumerDisclosureOptions options = null) + public async System.Threading.Tasks.Task UpdateConsumerDisclosureAsync(string accountId, string langCode, ConsumerDisclosure consumerDisclosure = null, AccountsApi.UpdateConsumerDisclosureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateConsumerDisclosureAsyncWithHttpInfo(accountId, langCode, consumerDisclosure, options); + ApiResponse localVarResponse = await UpdateConsumerDisclosureAsyncWithHttpInfo(accountId, langCode, consumerDisclosure, options, cancellationToken); return localVarResponse.Data; } @@ -9952,7 +9952,7 @@ public async System.Threading.Tasks.Task UpdateConsumerDiscl /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConsumerDisclosure) - public async System.Threading.Tasks.Task> UpdateConsumerDisclosureAsyncWithHttpInfo(string accountId, string langCode, ConsumerDisclosure consumerDisclosure = null, AccountsApi.UpdateConsumerDisclosureOptions options = null) + public async System.Threading.Tasks.Task> UpdateConsumerDisclosureAsyncWithHttpInfo(string accountId, string langCode, ConsumerDisclosure consumerDisclosure = null, AccountsApi.UpdateConsumerDisclosureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10010,7 +10010,7 @@ public async System.Threading.Tasks.Task> Update // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10076,9 +10076,9 @@ public ApiResponse UpdateCustomFieldWithHttpInfo(string accountId, /// (optional) /// Options for modifying the behavior of the function. /// Task of CustomFields - public async System.Threading.Tasks.Task UpdateCustomFieldAsync(string accountId, string customFieldId, CustomField customField = null, AccountsApi.UpdateCustomFieldOptions options = null) + public async System.Threading.Tasks.Task UpdateCustomFieldAsync(string accountId, string customFieldId, CustomField customField = null, AccountsApi.UpdateCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateCustomFieldAsyncWithHttpInfo(accountId, customFieldId, customField, options); + ApiResponse localVarResponse = await UpdateCustomFieldAsyncWithHttpInfo(accountId, customFieldId, customField, options, cancellationToken); return localVarResponse.Data; } @@ -10091,7 +10091,7 @@ public async System.Threading.Tasks.Task UpdateCustomFieldAsync(st /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> UpdateCustomFieldAsyncWithHttpInfo(string accountId, string customFieldId, CustomField customField = null, AccountsApi.UpdateCustomFieldOptions options = null) + public async System.Threading.Tasks.Task> UpdateCustomFieldAsyncWithHttpInfo(string accountId, string customFieldId, CustomField customField = null, AccountsApi.UpdateCustomFieldOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10149,7 +10149,7 @@ public async System.Threading.Tasks.Task> UpdateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10201,7 +10201,7 @@ public ApiResponse UpdateENoteConfigurationWithHttpInfo(stri /// The external account number (int) or account ID Guid. /// (optional) /// Task of ENoteConfiguration - public async System.Threading.Tasks.Task UpdateENoteConfigurationAsync(string accountId, ENoteConfiguration eNoteConfiguration = null) + public async System.Threading.Tasks.Task UpdateENoteConfigurationAsync(string accountId, ENoteConfiguration eNoteConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateENoteConfigurationAsyncWithHttpInfo(accountId, eNoteConfiguration); return localVarResponse.Data; @@ -10214,7 +10214,7 @@ public async System.Threading.Tasks.Task UpdateENoteConfigur /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ENoteConfiguration) - public async System.Threading.Tasks.Task> UpdateENoteConfigurationAsyncWithHttpInfo(string accountId, ENoteConfiguration eNoteConfiguration = null) + public async System.Threading.Tasks.Task> UpdateENoteConfigurationAsyncWithHttpInfo(string accountId, ENoteConfiguration eNoteConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10264,7 +10264,7 @@ public async System.Threading.Tasks.Task> Update // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10316,7 +10316,7 @@ public ApiResponse UpdateEnvelopePurgeConfigurationW /// The external account number (int) or account ID Guid. /// (optional) /// Task of EnvelopePurgeConfiguration - public async System.Threading.Tasks.Task UpdateEnvelopePurgeConfigurationAsync(string accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration = null) + public async System.Threading.Tasks.Task UpdateEnvelopePurgeConfigurationAsync(string accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopePurgeConfigurationAsyncWithHttpInfo(accountId, envelopePurgeConfiguration); return localVarResponse.Data; @@ -10329,7 +10329,7 @@ public async System.Threading.Tasks.Task UpdateEnvel /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (EnvelopePurgeConfiguration) - public async System.Threading.Tasks.Task> UpdateEnvelopePurgeConfigurationAsyncWithHttpInfo(string accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration = null) + public async System.Threading.Tasks.Task> UpdateEnvelopePurgeConfigurationAsyncWithHttpInfo(string accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10379,7 +10379,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10431,7 +10431,7 @@ public ApiResponse UpdateFavoriteTemplateWithHttpInfo(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of FavoriteTemplatesInfo - public async System.Threading.Tasks.Task UpdateFavoriteTemplateAsync(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null) + public async System.Threading.Tasks.Task UpdateFavoriteTemplateAsync(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateFavoriteTemplateAsyncWithHttpInfo(accountId, favoriteTemplatesInfo); return localVarResponse.Data; @@ -10444,7 +10444,7 @@ public async System.Threading.Tasks.Task UpdateFavoriteTe /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (FavoriteTemplatesInfo) - public async System.Threading.Tasks.Task> UpdateFavoriteTemplateAsyncWithHttpInfo(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null) + public async System.Threading.Tasks.Task> UpdateFavoriteTemplateAsyncWithHttpInfo(string accountId, FavoriteTemplatesInfo favoriteTemplatesInfo = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10494,7 +10494,7 @@ public async System.Threading.Tasks.Task> Upd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10546,7 +10546,7 @@ public ApiResponse UpdateNotificationDefaultsWithHttpInfo( /// The external account number (int) or account ID Guid. /// (optional) /// Task of NotificationDefaults - public async System.Threading.Tasks.Task UpdateNotificationDefaultsAsync(string accountId, NotificationDefaults notificationDefaults = null) + public async System.Threading.Tasks.Task UpdateNotificationDefaultsAsync(string accountId, NotificationDefaults notificationDefaults = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateNotificationDefaultsAsyncWithHttpInfo(accountId, notificationDefaults); return localVarResponse.Data; @@ -10559,7 +10559,7 @@ public async System.Threading.Tasks.Task UpdateNotificatio /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (NotificationDefaults) - public async System.Threading.Tasks.Task> UpdateNotificationDefaultsAsyncWithHttpInfo(string accountId, NotificationDefaults notificationDefaults = null) + public async System.Threading.Tasks.Task> UpdateNotificationDefaultsAsyncWithHttpInfo(string accountId, NotificationDefaults notificationDefaults = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10609,7 +10609,7 @@ public async System.Threading.Tasks.Task> Upda // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10661,7 +10661,7 @@ public ApiResponse UpdatePasswordRulesWithHttpInfo(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of AccountPasswordRules - public async System.Threading.Tasks.Task UpdatePasswordRulesAsync(string accountId, AccountPasswordRules accountPasswordRules = null) + public async System.Threading.Tasks.Task UpdatePasswordRulesAsync(string accountId, AccountPasswordRules accountPasswordRules = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdatePasswordRulesAsyncWithHttpInfo(accountId, accountPasswordRules); return localVarResponse.Data; @@ -10674,7 +10674,7 @@ public async System.Threading.Tasks.Task UpdatePasswordRul /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (AccountPasswordRules) - public async System.Threading.Tasks.Task> UpdatePasswordRulesAsyncWithHttpInfo(string accountId, AccountPasswordRules accountPasswordRules = null) + public async System.Threading.Tasks.Task> UpdatePasswordRulesAsyncWithHttpInfo(string accountId, AccountPasswordRules accountPasswordRules = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10724,7 +10724,7 @@ public async System.Threading.Tasks.Task> Upda // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10790,9 +10790,9 @@ public ApiResponse UpdatePermissionProfileWithHttpInfo(string /// (optional) /// Options for modifying the behavior of the function. /// Task of PermissionProfile - public async System.Threading.Tasks.Task UpdatePermissionProfileAsync(string accountId, string permissionProfileId, PermissionProfile permissionProfile = null, AccountsApi.UpdatePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task UpdatePermissionProfileAsync(string accountId, string permissionProfileId, PermissionProfile permissionProfile = null, AccountsApi.UpdatePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdatePermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, permissionProfile, options); + ApiResponse localVarResponse = await UpdatePermissionProfileAsyncWithHttpInfo(accountId, permissionProfileId, permissionProfile, options, cancellationToken); return localVarResponse.Data; } @@ -10805,7 +10805,7 @@ public async System.Threading.Tasks.Task UpdatePermissionProf /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (PermissionProfile) - public async System.Threading.Tasks.Task> UpdatePermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, PermissionProfile permissionProfile = null, AccountsApi.UpdatePermissionProfileOptions options = null) + public async System.Threading.Tasks.Task> UpdatePermissionProfileAsyncWithHttpInfo(string accountId, string permissionProfileId, PermissionProfile permissionProfile = null, AccountsApi.UpdatePermissionProfileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10863,7 +10863,7 @@ public async System.Threading.Tasks.Task> UpdateP // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10914,7 +10914,7 @@ public ApiResponse UpdateSettingsWithHttpInfo(string accountId, AccountS /// The external account number (int) or account ID Guid. /// (optional) /// Task of void - public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, AccountSettingsInformation accountSettingsInformation = null) + public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, AccountSettingsInformation accountSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { await UpdateSettingsAsyncWithHttpInfo(accountId, accountSettingsInformation); } @@ -10926,7 +10926,7 @@ public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, A /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateSettingsAsyncWithHttpInfo(string accountId, AccountSettingsInformation accountSettingsInformation = null) + public async System.Threading.Tasks.Task> UpdateSettingsAsyncWithHttpInfo(string accountId, AccountSettingsInformation accountSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10976,7 +10976,7 @@ public async System.Threading.Tasks.Task> UpdateSettingsAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11044,9 +11044,9 @@ public ApiResponse UpdateSharedAccessWithHttpInfo(string ac /// (optional) /// Options for modifying the behavior of the function. /// Task of AccountSharedAccess - public async System.Threading.Tasks.Task UpdateSharedAccessAsync(string accountId, AccountSharedAccess accountSharedAccess = null, AccountsApi.UpdateSharedAccessOptions options = null) + public async System.Threading.Tasks.Task UpdateSharedAccessAsync(string accountId, AccountSharedAccess accountSharedAccess = null, AccountsApi.UpdateSharedAccessOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateSharedAccessAsyncWithHttpInfo(accountId, accountSharedAccess, options); + ApiResponse localVarResponse = await UpdateSharedAccessAsyncWithHttpInfo(accountId, accountSharedAccess, options, cancellationToken); return localVarResponse.Data; } @@ -11058,7 +11058,7 @@ public async System.Threading.Tasks.Task UpdateSharedAccess /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountSharedAccess) - public async System.Threading.Tasks.Task> UpdateSharedAccessAsyncWithHttpInfo(string accountId, AccountSharedAccess accountSharedAccess = null, AccountsApi.UpdateSharedAccessOptions options = null) + public async System.Threading.Tasks.Task> UpdateSharedAccessAsyncWithHttpInfo(string accountId, AccountSharedAccess accountSharedAccess = null, AccountsApi.UpdateSharedAccessOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11114,7 +11114,7 @@ public async System.Threading.Tasks.Task> Updat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11166,7 +11166,7 @@ public ApiResponse UpdateWatermarkWithHttpInfo(string accountId, Wate /// The external account number (int) or account ID Guid. /// (optional) /// Task of Watermark - public async System.Threading.Tasks.Task UpdateWatermarkAsync(string accountId, Watermark watermark = null) + public async System.Threading.Tasks.Task UpdateWatermarkAsync(string accountId, Watermark watermark = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateWatermarkAsyncWithHttpInfo(accountId, watermark); return localVarResponse.Data; @@ -11179,7 +11179,7 @@ public async System.Threading.Tasks.Task UpdateWatermarkAsync(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (Watermark) - public async System.Threading.Tasks.Task> UpdateWatermarkAsyncWithHttpInfo(string accountId, Watermark watermark = null) + public async System.Threading.Tasks.Task> UpdateWatermarkAsyncWithHttpInfo(string accountId, Watermark watermark = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11229,7 +11229,7 @@ public async System.Threading.Tasks.Task> UpdateWatermark // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/AuthenticationApi.cs b/sdk/src/DocuSign.eSign/Api/AuthenticationApi.cs index 965b10d53..1c4157585 100644 --- a/sdk/src/DocuSign.eSign/Api/AuthenticationApi.cs +++ b/sdk/src/DocuSign.eSign/Api/AuthenticationApi.cs @@ -428,7 +428,7 @@ public ApiResponse DeleteSocialLoginWithHttpInfo(string accountId, strin /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of void - public async System.Threading.Tasks.Task DeleteSocialLoginAsync(string accountId, string userId, SocialAccountInformation socialAccountInformation = null) + public async System.Threading.Tasks.Task DeleteSocialLoginAsync(string accountId, string userId, SocialAccountInformation socialAccountInformation = null, System.Threading.CancellationToken cancellationToken = default) { await DeleteSocialLoginAsyncWithHttpInfo(accountId, userId, socialAccountInformation); } @@ -441,7 +441,7 @@ public async System.Threading.Tasks.Task DeleteSocialLoginAsync(string accountId /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteSocialLoginAsyncWithHttpInfo(string accountId, string userId, SocialAccountInformation socialAccountInformation = null) + public async System.Threading.Tasks.Task> DeleteSocialLoginAsyncWithHttpInfo(string accountId, string userId, SocialAccountInformation socialAccountInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -495,7 +495,7 @@ public async System.Threading.Tasks.Task> DeleteSocialLoginA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -542,7 +542,7 @@ public ApiResponse GetOAuthTokenWithHttpInfo() /// /// Thrown when fails to make API call /// Task of OauthAccess - public async System.Threading.Tasks.Task GetOAuthTokenAsync() + public async System.Threading.Tasks.Task GetOAuthTokenAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetOAuthTokenAsyncWithHttpInfo(); return localVarResponse.Data; @@ -553,7 +553,7 @@ public async System.Threading.Tasks.Task GetOAuthTokenAsync() /// /// Thrown when fails to make API call /// Task of ApiResponse (OauthAccess) - public async System.Threading.Tasks.Task> GetOAuthTokenAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetOAuthTokenAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/oauth2/token"; @@ -591,7 +591,7 @@ public async System.Threading.Tasks.Task> GetOAuthToken // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -643,7 +643,7 @@ public ApiResponse ListSocialLoginsWithHttpInfo(string accou /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of UserSocialIdResult - public async System.Threading.Tasks.Task ListSocialLoginsAsync(string accountId, string userId) + public async System.Threading.Tasks.Task ListSocialLoginsAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListSocialLoginsAsyncWithHttpInfo(accountId, userId); return localVarResponse.Data; @@ -656,7 +656,7 @@ public async System.Threading.Tasks.Task ListSocialLoginsAsy /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse (UserSocialIdResult) - public async System.Threading.Tasks.Task> ListSocialLoginsAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> ListSocialLoginsAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -702,7 +702,7 @@ public async System.Threading.Tasks.Task> ListSo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -765,9 +765,9 @@ public ApiResponse LoginWithHttpInfo(AuthenticationApi.LoginOp /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of LoginInformation - public async System.Threading.Tasks.Task LoginAsync(AuthenticationApi.LoginOptions options = null) + public async System.Threading.Tasks.Task LoginAsync(AuthenticationApi.LoginOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await LoginAsyncWithHttpInfo(options); + ApiResponse localVarResponse = await LoginAsyncWithHttpInfo(options, cancellationToken); return localVarResponse.Data; } @@ -777,7 +777,7 @@ public async System.Threading.Tasks.Task LoginAsync(Authentica /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of ApiResponse (LoginInformation) - public async System.Threading.Tasks.Task> LoginAsyncWithHttpInfo(AuthenticationApi.LoginOptions options = null) + public async System.Threading.Tasks.Task> LoginAsyncWithHttpInfo(AuthenticationApi.LoginOptions options = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/login_information"; @@ -822,7 +822,7 @@ public async System.Threading.Tasks.Task> LoginAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -867,7 +867,7 @@ public ApiResponse RevokeOAuthTokenWithHttpInfo() /// /// Thrown when fails to make API call /// Task of void - public async System.Threading.Tasks.Task RevokeOAuthTokenAsync() + public async System.Threading.Tasks.Task RevokeOAuthTokenAsync(, System.Threading.CancellationToken cancellationToken = default) { await RevokeOAuthTokenAsyncWithHttpInfo(); } @@ -877,7 +877,7 @@ public async System.Threading.Tasks.Task RevokeOAuthTokenAsync() /// /// Thrown when fails to make API call /// Task of ApiResponse - public async System.Threading.Tasks.Task> RevokeOAuthTokenAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> RevokeOAuthTokenAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/oauth2/revoke"; @@ -915,7 +915,7 @@ public async System.Threading.Tasks.Task> RevokeOAuthTokenAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -967,7 +967,7 @@ public ApiResponse UpdatePasswordWithHttpInfo(string loginPart, UserPass /// Currently, only the value **password** is supported. /// (optional) /// Task of void - public async System.Threading.Tasks.Task UpdatePasswordAsync(string loginPart, UserPasswordInformation userPasswordInformation = null) + public async System.Threading.Tasks.Task UpdatePasswordAsync(string loginPart, UserPasswordInformation userPasswordInformation = null, System.Threading.CancellationToken cancellationToken = default) { await UpdatePasswordAsyncWithHttpInfo(loginPart, userPasswordInformation); } @@ -979,7 +979,7 @@ public async System.Threading.Tasks.Task UpdatePasswordAsync(string loginPart, U /// Currently, only the value **password** is supported. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePasswordAsyncWithHttpInfo(string loginPart, UserPasswordInformation userPasswordInformation = null) + public async System.Threading.Tasks.Task> UpdatePasswordAsyncWithHttpInfo(string loginPart, UserPasswordInformation userPasswordInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'loginPart' is set if (loginPart == null) @@ -1029,7 +1029,7 @@ public async System.Threading.Tasks.Task> UpdatePasswordAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1084,7 +1084,7 @@ public ApiResponse UpdateSocialLoginWithHttpInfo(string accountId, strin /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of void - public async System.Threading.Tasks.Task UpdateSocialLoginAsync(string accountId, string userId, SocialAccountInformation socialAccountInformation = null) + public async System.Threading.Tasks.Task UpdateSocialLoginAsync(string accountId, string userId, SocialAccountInformation socialAccountInformation = null, System.Threading.CancellationToken cancellationToken = default) { await UpdateSocialLoginAsyncWithHttpInfo(accountId, userId, socialAccountInformation); } @@ -1097,7 +1097,7 @@ public async System.Threading.Tasks.Task UpdateSocialLoginAsync(string accountId /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateSocialLoginAsyncWithHttpInfo(string accountId, string userId, SocialAccountInformation socialAccountInformation = null) + public async System.Threading.Tasks.Task> UpdateSocialLoginAsyncWithHttpInfo(string accountId, string userId, SocialAccountInformation socialAccountInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1151,7 +1151,7 @@ public async System.Threading.Tasks.Task> UpdateSocialLoginA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/BillingApi.cs b/sdk/src/DocuSign.eSign/Api/BillingApi.cs index 0db9a28f1..286e99c45 100644 --- a/sdk/src/DocuSign.eSign/Api/BillingApi.cs +++ b/sdk/src/DocuSign.eSign/Api/BillingApi.cs @@ -737,7 +737,7 @@ public ApiResponse GetBillingPlanWithHttpInfo(string billin /// Thrown when fails to make API call /// The ID of the billing plan being accessed. /// Task of BillingPlanResponse - public async System.Threading.Tasks.Task GetBillingPlanAsync(string billingPlanId) + public async System.Threading.Tasks.Task GetBillingPlanAsync(string billingPlanId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBillingPlanAsyncWithHttpInfo(billingPlanId); return localVarResponse.Data; @@ -749,7 +749,7 @@ public async System.Threading.Tasks.Task GetBillingPlanAsyn /// Thrown when fails to make API call /// The ID of the billing plan being accessed. /// Task of ApiResponse (BillingPlanResponse) - public async System.Threading.Tasks.Task> GetBillingPlanAsyncWithHttpInfo(string billingPlanId) + public async System.Threading.Tasks.Task> GetBillingPlanAsyncWithHttpInfo(string billingPlanId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'billingPlanId' is set if (billingPlanId == null) @@ -791,7 +791,7 @@ public async System.Threading.Tasks.Task> GetBi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -840,7 +840,7 @@ public ApiResponse GetCreditCardInfoWithHttpInfo(string a /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of CreditCardInformation - public async System.Threading.Tasks.Task GetCreditCardInfoAsync(string accountId) + public async System.Threading.Tasks.Task GetCreditCardInfoAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetCreditCardInfoAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -852,7 +852,7 @@ public async System.Threading.Tasks.Task GetCreditCardInf /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (CreditCardInformation) - public async System.Threading.Tasks.Task> GetCreditCardInfoAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetCreditCardInfoAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -894,7 +894,7 @@ public async System.Threading.Tasks.Task> Get // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -943,7 +943,7 @@ public ApiResponse GetDowngradeRequestBillin /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of DowngradRequestBillingInfoResponse - public async System.Threading.Tasks.Task GetDowngradeRequestBillingInfoAsync(string accountId) + public async System.Threading.Tasks.Task GetDowngradeRequestBillingInfoAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetDowngradeRequestBillingInfoAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -955,7 +955,7 @@ public async System.Threading.Tasks.Task Get /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (DowngradRequestBillingInfoResponse) - public async System.Threading.Tasks.Task> GetDowngradeRequestBillingInfoAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetDowngradeRequestBillingInfoAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -997,7 +997,7 @@ public async System.Threading.Tasks.Task GetInvoiceWithHttpInfo(string accountId, stri /// The external account number (int) or account ID Guid. /// /// Task of BillingInvoice - public async System.Threading.Tasks.Task GetInvoiceAsync(string accountId, string invoiceId) + public async System.Threading.Tasks.Task GetInvoiceAsync(string accountId, string invoiceId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetInvoiceAsyncWithHttpInfo(accountId, invoiceId); return localVarResponse.Data; @@ -1062,7 +1062,7 @@ public async System.Threading.Tasks.Task GetInvoiceAsync(string /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BillingInvoice) - public async System.Threading.Tasks.Task> GetInvoiceAsyncWithHttpInfo(string accountId, string invoiceId) + public async System.Threading.Tasks.Task> GetInvoiceAsyncWithHttpInfo(string accountId, string invoiceId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1108,7 +1108,7 @@ public async System.Threading.Tasks.Task> GetInvoice // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1160,7 +1160,7 @@ public ApiResponse GetPaymentWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// /// Task of BillingPaymentItem - public async System.Threading.Tasks.Task GetPaymentAsync(string accountId, string paymentId) + public async System.Threading.Tasks.Task GetPaymentAsync(string accountId, string paymentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPaymentAsyncWithHttpInfo(accountId, paymentId); return localVarResponse.Data; @@ -1173,7 +1173,7 @@ public async System.Threading.Tasks.Task GetPaymentAsync(str /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BillingPaymentItem) - public async System.Threading.Tasks.Task> GetPaymentAsyncWithHttpInfo(string accountId, string paymentId) + public async System.Threading.Tasks.Task> GetPaymentAsyncWithHttpInfo(string accountId, string paymentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1219,7 +1219,7 @@ public async System.Threading.Tasks.Task> GetPay // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1287,9 +1287,9 @@ public ApiResponse GetPlanWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of AccountBillingPlanResponse - public async System.Threading.Tasks.Task GetPlanAsync(string accountId, BillingApi.GetPlanOptions options = null) + public async System.Threading.Tasks.Task GetPlanAsync(string accountId, BillingApi.GetPlanOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetPlanAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetPlanAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1300,7 +1300,7 @@ public async System.Threading.Tasks.Task GetPlanAsyn /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (AccountBillingPlanResponse) - public async System.Threading.Tasks.Task> GetPlanAsyncWithHttpInfo(string accountId, BillingApi.GetPlanOptions options = null) + public async System.Threading.Tasks.Task> GetPlanAsyncWithHttpInfo(string accountId, BillingApi.GetPlanOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1350,7 +1350,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1396,7 +1396,7 @@ public ApiResponse ListBillingPlansWithHttpInfo() /// /// Thrown when fails to make API call /// Task of BillingPlansResponse - public async System.Threading.Tasks.Task ListBillingPlansAsync() + public async System.Threading.Tasks.Task ListBillingPlansAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListBillingPlansAsyncWithHttpInfo(); return localVarResponse.Data; @@ -1407,7 +1407,7 @@ public async System.Threading.Tasks.Task ListBillingPlansA /// /// Thrown when fails to make API call /// Task of ApiResponse (BillingPlansResponse) - public async System.Threading.Tasks.Task> ListBillingPlansAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> ListBillingPlansAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/billing_plans"; @@ -1445,7 +1445,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1507,9 +1507,9 @@ public ApiResponse ListInvoicesWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BillingInvoicesResponse - public async System.Threading.Tasks.Task ListInvoicesAsync(string accountId, BillingApi.ListInvoicesOptions options = null) + public async System.Threading.Tasks.Task ListInvoicesAsync(string accountId, BillingApi.ListInvoicesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListInvoicesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListInvoicesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1520,7 +1520,7 @@ public async System.Threading.Tasks.Task ListInvoicesAs /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BillingInvoicesResponse) - public async System.Threading.Tasks.Task> ListInvoicesAsyncWithHttpInfo(string accountId, BillingApi.ListInvoicesOptions options = null) + public async System.Threading.Tasks.Task> ListInvoicesAsyncWithHttpInfo(string accountId, BillingApi.ListInvoicesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1567,7 +1567,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1616,7 +1616,7 @@ public ApiResponse ListInvoicesPastDueWithHttpInfo(strin /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of BillingInvoicesSummary - public async System.Threading.Tasks.Task ListInvoicesPastDueAsync(string accountId) + public async System.Threading.Tasks.Task ListInvoicesPastDueAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListInvoicesPastDueAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -1628,7 +1628,7 @@ public async System.Threading.Tasks.Task ListInvoicesPas /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (BillingInvoicesSummary) - public async System.Threading.Tasks.Task> ListInvoicesPastDueAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListInvoicesPastDueAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1670,7 +1670,7 @@ public async System.Threading.Tasks.Task> Li // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1732,9 +1732,9 @@ public ApiResponse ListPaymentsWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BillingPaymentsResponse - public async System.Threading.Tasks.Task ListPaymentsAsync(string accountId, BillingApi.ListPaymentsOptions options = null) + public async System.Threading.Tasks.Task ListPaymentsAsync(string accountId, BillingApi.ListPaymentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListPaymentsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListPaymentsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1745,7 +1745,7 @@ public async System.Threading.Tasks.Task ListPaymentsAs /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BillingPaymentsResponse) - public async System.Threading.Tasks.Task> ListPaymentsAsyncWithHttpInfo(string accountId, BillingApi.ListPaymentsOptions options = null) + public async System.Threading.Tasks.Task> ListPaymentsAsyncWithHttpInfo(string accountId, BillingApi.ListPaymentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1792,7 +1792,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1844,7 +1844,7 @@ public ApiResponse MakePaymentWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of BillingPaymentResponse - public async System.Threading.Tasks.Task MakePaymentAsync(string accountId, BillingPaymentRequest billingPaymentRequest = null) + public async System.Threading.Tasks.Task MakePaymentAsync(string accountId, BillingPaymentRequest billingPaymentRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await MakePaymentAsyncWithHttpInfo(accountId, billingPaymentRequest); return localVarResponse.Data; @@ -1857,7 +1857,7 @@ public async System.Threading.Tasks.Task MakePaymentAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (BillingPaymentResponse) - public async System.Threading.Tasks.Task> MakePaymentAsyncWithHttpInfo(string accountId, BillingPaymentRequest billingPaymentRequest = null) + public async System.Threading.Tasks.Task> MakePaymentAsyncWithHttpInfo(string accountId, BillingPaymentRequest billingPaymentRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1907,7 +1907,7 @@ public async System.Threading.Tasks.Task> Ma // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1958,7 +1958,7 @@ public ApiResponse PurchaseEnvelopesWithHttpInfo(string accountId, Purch /// The external account number (int) or account ID Guid. /// (optional) /// Task of void - public async System.Threading.Tasks.Task PurchaseEnvelopesAsync(string accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation = null) + public async System.Threading.Tasks.Task PurchaseEnvelopesAsync(string accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation = null, System.Threading.CancellationToken cancellationToken = default) { await PurchaseEnvelopesAsyncWithHttpInfo(accountId, purchasedEnvelopesInformation); } @@ -1970,7 +1970,7 @@ public async System.Threading.Tasks.Task PurchaseEnvelopesAsync(string accountId /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> PurchaseEnvelopesAsyncWithHttpInfo(string accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation = null) + public async System.Threading.Tasks.Task> PurchaseEnvelopesAsyncWithHttpInfo(string accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2020,7 +2020,7 @@ public async System.Threading.Tasks.Task> PurchaseEnvelopesA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2073,7 +2073,7 @@ public ApiResponse UpdateDowngradeAccountBillingPla /// The external account number (int) or account ID Guid. /// (optional) /// Task of DowngradePlanUpdateResponse - public async System.Threading.Tasks.Task UpdateDowngradeAccountBillingPlanAsync(string accountId, DowngradeBillingPlanInformation downgradeBillingPlanInformation = null) + public async System.Threading.Tasks.Task UpdateDowngradeAccountBillingPlanAsync(string accountId, DowngradeBillingPlanInformation downgradeBillingPlanInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDowngradeAccountBillingPlanAsyncWithHttpInfo(accountId, downgradeBillingPlanInformation); return localVarResponse.Data; @@ -2086,7 +2086,7 @@ public async System.Threading.Tasks.Task UpdateDown /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (DowngradePlanUpdateResponse) - public async System.Threading.Tasks.Task> UpdateDowngradeAccountBillingPlanAsyncWithHttpInfo(string accountId, DowngradeBillingPlanInformation downgradeBillingPlanInformation = null) + public async System.Threading.Tasks.Task> UpdateDowngradeAccountBillingPlanAsyncWithHttpInfo(string accountId, DowngradeBillingPlanInformation downgradeBillingPlanInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2136,7 +2136,7 @@ public async System.Threading.Tasks.Task UpdatePlanWithHttpInfo(string acco /// (optional) /// Options for modifying the behavior of the function. /// Task of BillingPlanUpdateResponse - public async System.Threading.Tasks.Task UpdatePlanAsync(string accountId, BillingPlanInformation billingPlanInformation = null, BillingApi.UpdatePlanOptions options = null) + public async System.Threading.Tasks.Task UpdatePlanAsync(string accountId, BillingPlanInformation billingPlanInformation = null, BillingApi.UpdatePlanOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdatePlanAsyncWithHttpInfo(accountId, billingPlanInformation, options); + ApiResponse localVarResponse = await UpdatePlanAsyncWithHttpInfo(accountId, billingPlanInformation, options, cancellationToken); return localVarResponse.Data; } @@ -2213,7 +2213,7 @@ public async System.Threading.Tasks.Task UpdatePlanAs /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (BillingPlanUpdateResponse) - public async System.Threading.Tasks.Task> UpdatePlanAsyncWithHttpInfo(string accountId, BillingPlanInformation billingPlanInformation = null, BillingApi.UpdatePlanOptions options = null) + public async System.Threading.Tasks.Task> UpdatePlanAsyncWithHttpInfo(string accountId, BillingPlanInformation billingPlanInformation = null, BillingApi.UpdatePlanOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2267,7 +2267,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/BulkEnvelopesApi.cs b/sdk/src/DocuSign.eSign/Api/BulkEnvelopesApi.cs index a237e98e0..b2b8ff32e 100644 --- a/sdk/src/DocuSign.eSign/Api/BulkEnvelopesApi.cs +++ b/sdk/src/DocuSign.eSign/Api/BulkEnvelopesApi.cs @@ -692,7 +692,7 @@ public ApiResponse CreateBulkSendListWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of BulkSendingList - public async System.Threading.Tasks.Task CreateBulkSendListAsync(string accountId, BulkSendingList bulkSendingList = null) + public async System.Threading.Tasks.Task CreateBulkSendListAsync(string accountId, BulkSendingList bulkSendingList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBulkSendListAsyncWithHttpInfo(accountId, bulkSendingList); return localVarResponse.Data; @@ -705,7 +705,7 @@ public async System.Threading.Tasks.Task CreateBulkSendListAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (BulkSendingList) - public async System.Threading.Tasks.Task> CreateBulkSendListAsyncWithHttpInfo(string accountId, BulkSendingList bulkSendingList = null) + public async System.Threading.Tasks.Task> CreateBulkSendListAsyncWithHttpInfo(string accountId, BulkSendingList bulkSendingList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -755,7 +755,7 @@ public async System.Threading.Tasks.Task> CreateBul // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -810,7 +810,7 @@ public ApiResponse CreateBulkSendRequestWithHttpInfo(string ac /// /// (optional) /// Task of BulkSendResponse - public async System.Threading.Tasks.Task CreateBulkSendRequestAsync(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null) + public async System.Threading.Tasks.Task CreateBulkSendRequestAsync(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBulkSendRequestAsyncWithHttpInfo(accountId, bulkSendListId, bulkSendRequest); return localVarResponse.Data; @@ -824,7 +824,7 @@ public async System.Threading.Tasks.Task CreateBulkSendRequest /// /// (optional) /// Task of ApiResponse (BulkSendResponse) - public async System.Threading.Tasks.Task> CreateBulkSendRequestAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null) + public async System.Threading.Tasks.Task> CreateBulkSendRequestAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -878,7 +878,7 @@ public async System.Threading.Tasks.Task> CreateBu // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -933,7 +933,7 @@ public ApiResponse CreateBulkSendTestRequestWithHttpInfo(s /// /// (optional) /// Task of BulkSendTestResponse - public async System.Threading.Tasks.Task CreateBulkSendTestRequestAsync(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null) + public async System.Threading.Tasks.Task CreateBulkSendTestRequestAsync(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBulkSendTestRequestAsyncWithHttpInfo(accountId, bulkSendListId, bulkSendRequest); return localVarResponse.Data; @@ -947,7 +947,7 @@ public async System.Threading.Tasks.Task CreateBulkSendTes /// /// (optional) /// Task of ApiResponse (BulkSendTestResponse) - public async System.Threading.Tasks.Task> CreateBulkSendTestRequestAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null) + public async System.Threading.Tasks.Task> CreateBulkSendTestRequestAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendRequest bulkSendRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1001,7 +1001,7 @@ public async System.Threading.Tasks.Task> Crea // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1053,7 +1053,7 @@ public ApiResponse DeleteBulkSendListWithHttpInfo(stri /// The external account number (int) or account ID Guid. /// /// Task of BulkSendingListSummaries - public async System.Threading.Tasks.Task DeleteBulkSendListAsync(string accountId, string bulkSendListId) + public async System.Threading.Tasks.Task DeleteBulkSendListAsync(string accountId, string bulkSendListId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBulkSendListAsyncWithHttpInfo(accountId, bulkSendListId); return localVarResponse.Data; @@ -1066,7 +1066,7 @@ public async System.Threading.Tasks.Task DeleteBulkSen /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BulkSendingListSummaries) - public async System.Threading.Tasks.Task> DeleteBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId) + public async System.Threading.Tasks.Task> DeleteBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1112,7 +1112,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1187,9 +1187,9 @@ public ApiResponse GetBulkSendBatchEnvelopesWithHttpInfo(s /// /// Options for modifying the behavior of the function. /// Task of EnvelopesInformation - public async System.Threading.Tasks.Task GetBulkSendBatchEnvelopesAsync(string accountId, string bulkSendBatchId, BulkEnvelopesApi.GetBulkSendBatchEnvelopesOptions options = null) + public async System.Threading.Tasks.Task GetBulkSendBatchEnvelopesAsync(string accountId, string bulkSendBatchId, BulkEnvelopesApi.GetBulkSendBatchEnvelopesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBulkSendBatchEnvelopesAsyncWithHttpInfo(accountId, bulkSendBatchId, options); + ApiResponse localVarResponse = await GetBulkSendBatchEnvelopesAsyncWithHttpInfo(accountId, bulkSendBatchId, options, cancellationToken); return localVarResponse.Data; } @@ -1201,7 +1201,7 @@ public async System.Threading.Tasks.Task GetBulkSendBatchE /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopesInformation) - public async System.Threading.Tasks.Task> GetBulkSendBatchEnvelopesAsyncWithHttpInfo(string accountId, string bulkSendBatchId, BulkEnvelopesApi.GetBulkSendBatchEnvelopesOptions options = null) + public async System.Threading.Tasks.Task> GetBulkSendBatchEnvelopesAsyncWithHttpInfo(string accountId, string bulkSendBatchId, BulkEnvelopesApi.GetBulkSendBatchEnvelopesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1257,7 +1257,7 @@ public async System.Threading.Tasks.Task> GetB // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1309,7 +1309,7 @@ public ApiResponse GetBulkSendBatchStatusWithHttpInfo(strin /// The external account number (int) or account ID Guid. /// /// Task of BulkSendBatchStatus - public async System.Threading.Tasks.Task GetBulkSendBatchStatusAsync(string accountId, string bulkSendBatchId) + public async System.Threading.Tasks.Task GetBulkSendBatchStatusAsync(string accountId, string bulkSendBatchId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBulkSendBatchStatusAsyncWithHttpInfo(accountId, bulkSendBatchId); return localVarResponse.Data; @@ -1322,7 +1322,7 @@ public async System.Threading.Tasks.Task GetBulkSendBatchSt /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BulkSendBatchStatus) - public async System.Threading.Tasks.Task> GetBulkSendBatchStatusAsyncWithHttpInfo(string accountId, string bulkSendBatchId) + public async System.Threading.Tasks.Task> GetBulkSendBatchStatusAsyncWithHttpInfo(string accountId, string bulkSendBatchId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1368,7 +1368,7 @@ public async System.Threading.Tasks.Task> GetBu // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1442,9 +1442,9 @@ public ApiResponse GetBulkSendBatchesWithHttpInfo(string /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BulkSendBatchSummaries - public async System.Threading.Tasks.Task GetBulkSendBatchesAsync(string accountId, BulkEnvelopesApi.GetBulkSendBatchesOptions options = null) + public async System.Threading.Tasks.Task GetBulkSendBatchesAsync(string accountId, BulkEnvelopesApi.GetBulkSendBatchesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBulkSendBatchesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetBulkSendBatchesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1455,7 +1455,7 @@ public async System.Threading.Tasks.Task GetBulkSendBatc /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BulkSendBatchSummaries) - public async System.Threading.Tasks.Task> GetBulkSendBatchesAsyncWithHttpInfo(string accountId, BulkEnvelopesApi.GetBulkSendBatchesOptions options = null) + public async System.Threading.Tasks.Task> GetBulkSendBatchesAsyncWithHttpInfo(string accountId, BulkEnvelopesApi.GetBulkSendBatchesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1508,7 +1508,7 @@ public async System.Threading.Tasks.Task> Ge // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1560,7 +1560,7 @@ public ApiResponse GetBulkSendListWithHttpInfo(string accountId /// The external account number (int) or account ID Guid. /// /// Task of BulkSendingList - public async System.Threading.Tasks.Task GetBulkSendListAsync(string accountId, string bulkSendListId) + public async System.Threading.Tasks.Task GetBulkSendListAsync(string accountId, string bulkSendListId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBulkSendListAsyncWithHttpInfo(accountId, bulkSendListId); return localVarResponse.Data; @@ -1573,7 +1573,7 @@ public async System.Threading.Tasks.Task GetBulkSendListAsync(s /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BulkSendingList) - public async System.Threading.Tasks.Task> GetBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId) + public async System.Threading.Tasks.Task> GetBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1619,7 +1619,7 @@ public async System.Threading.Tasks.Task> GetBulkSe // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1668,7 +1668,7 @@ public ApiResponse GetBulkSendListsWithHttpInfo(string /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of BulkSendingListSummaries - public async System.Threading.Tasks.Task GetBulkSendListsAsync(string accountId) + public async System.Threading.Tasks.Task GetBulkSendListsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBulkSendListsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -1680,7 +1680,7 @@ public async System.Threading.Tasks.Task GetBulkSendLi /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (BulkSendingListSummaries) - public async System.Threading.Tasks.Task> GetBulkSendListsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetBulkSendListsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1722,7 +1722,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1780,7 +1780,7 @@ public ApiResponse UpdateBulkSendBatchActionWithHttpInfo(st /// /// (optional) /// Task of BulkSendBatchStatus - public async System.Threading.Tasks.Task UpdateBulkSendBatchActionAsync(string accountId, string bulkSendBatchId, string bulkAction, BulkSendBatchActionRequest bulkSendBatchActionRequest = null) + public async System.Threading.Tasks.Task UpdateBulkSendBatchActionAsync(string accountId, string bulkSendBatchId, string bulkAction, BulkSendBatchActionRequest bulkSendBatchActionRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateBulkSendBatchActionAsyncWithHttpInfo(accountId, bulkSendBatchId, bulkAction, bulkSendBatchActionRequest); return localVarResponse.Data; @@ -1795,7 +1795,7 @@ public async System.Threading.Tasks.Task UpdateBulkSendBatc /// /// (optional) /// Task of ApiResponse (BulkSendBatchStatus) - public async System.Threading.Tasks.Task> UpdateBulkSendBatchActionAsyncWithHttpInfo(string accountId, string bulkSendBatchId, string bulkAction, BulkSendBatchActionRequest bulkSendBatchActionRequest = null) + public async System.Threading.Tasks.Task> UpdateBulkSendBatchActionAsyncWithHttpInfo(string accountId, string bulkSendBatchId, string bulkAction, BulkSendBatchActionRequest bulkSendBatchActionRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1853,7 +1853,7 @@ public async System.Threading.Tasks.Task> Updat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1908,7 +1908,7 @@ public ApiResponse UpdateBulkSendBatchStatusWithHttpInfo(st /// /// (optional) /// Task of BulkSendBatchStatus - public async System.Threading.Tasks.Task UpdateBulkSendBatchStatusAsync(string accountId, string bulkSendBatchId, BulkSendBatchRequest bulkSendBatchRequest = null) + public async System.Threading.Tasks.Task UpdateBulkSendBatchStatusAsync(string accountId, string bulkSendBatchId, BulkSendBatchRequest bulkSendBatchRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateBulkSendBatchStatusAsyncWithHttpInfo(accountId, bulkSendBatchId, bulkSendBatchRequest); return localVarResponse.Data; @@ -1922,7 +1922,7 @@ public async System.Threading.Tasks.Task UpdateBulkSendBatc /// /// (optional) /// Task of ApiResponse (BulkSendBatchStatus) - public async System.Threading.Tasks.Task> UpdateBulkSendBatchStatusAsyncWithHttpInfo(string accountId, string bulkSendBatchId, BulkSendBatchRequest bulkSendBatchRequest = null) + public async System.Threading.Tasks.Task> UpdateBulkSendBatchStatusAsyncWithHttpInfo(string accountId, string bulkSendBatchId, BulkSendBatchRequest bulkSendBatchRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1976,7 +1976,7 @@ public async System.Threading.Tasks.Task> Updat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2031,7 +2031,7 @@ public ApiResponse UpdateBulkSendListWithHttpInfo(string accoun /// /// (optional) /// Task of BulkSendingList - public async System.Threading.Tasks.Task UpdateBulkSendListAsync(string accountId, string bulkSendListId, BulkSendingList bulkSendingList = null) + public async System.Threading.Tasks.Task UpdateBulkSendListAsync(string accountId, string bulkSendListId, BulkSendingList bulkSendingList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateBulkSendListAsyncWithHttpInfo(accountId, bulkSendListId, bulkSendingList); return localVarResponse.Data; @@ -2045,7 +2045,7 @@ public async System.Threading.Tasks.Task UpdateBulkSendListAsyn /// /// (optional) /// Task of ApiResponse (BulkSendingList) - public async System.Threading.Tasks.Task> UpdateBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendingList bulkSendingList = null) + public async System.Threading.Tasks.Task> UpdateBulkSendListAsyncWithHttpInfo(string accountId, string bulkSendListId, BulkSendingList bulkSendingList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2099,7 +2099,7 @@ public async System.Threading.Tasks.Task> UpdateBul // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/BulkProcessDataApi.cs b/sdk/src/DocuSign.eSign/Api/BulkProcessDataApi.cs index 2d611bc34..923f84079 100644 --- a/sdk/src/DocuSign.eSign/Api/BulkProcessDataApi.cs +++ b/sdk/src/DocuSign.eSign/Api/BulkProcessDataApi.cs @@ -461,7 +461,7 @@ public ApiResponse CreateBulkProcessRequestWithHttpInfo(string accountId /// The external account number (int) or account ID Guid. /// /// Task of void - public async System.Threading.Tasks.Task CreateBulkProcessRequestAsync(string accountId, string processAction) + public async System.Threading.Tasks.Task CreateBulkProcessRequestAsync(string accountId, string processAction, System.Threading.CancellationToken cancellationToken = default) { await CreateBulkProcessRequestAsyncWithHttpInfo(accountId, processAction); } @@ -473,7 +473,7 @@ public async System.Threading.Tasks.Task CreateBulkProcessRequestAsync(string ac /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateBulkProcessRequestAsyncWithHttpInfo(string accountId, string processAction) + public async System.Threading.Tasks.Task> CreateBulkProcessRequestAsyncWithHttpInfo(string accountId, string processAction, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -519,7 +519,7 @@ public async System.Threading.Tasks.Task> CreateBulkProcessR // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -578,7 +578,7 @@ public ApiResponse CreateBulkProcessRequestToQueueWithHttpI /// /// (optional) /// Task of BulkProcessResponse - public async System.Threading.Tasks.Task CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null) + public async System.Threading.Tasks.Task CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBulkProcessRequestToQueueAsyncWithHttpInfo(accountId, processAction, bulkProcessListId, bulkProcessRequest); return localVarResponse.Data; @@ -593,7 +593,7 @@ public async System.Threading.Tasks.Task CreateBulkProcessR /// /// (optional) /// Task of ApiResponse (BulkProcessResponse) - public async System.Threading.Tasks.Task> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null) + public async System.Threading.Tasks.Task> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -651,7 +651,7 @@ public async System.Threading.Tasks.Task> Creat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -706,7 +706,7 @@ public ApiResponse DeleteBulkProcessListWithHttpInfo(string a /// /// /// Task of BulkProcessResult - public async System.Threading.Tasks.Task DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); return localVarResponse.Data; @@ -720,7 +720,7 @@ public async System.Threading.Tasks.Task DeleteBulkProcessLis /// /// /// Task of ApiResponse (BulkProcessResult) - public async System.Threading.Tasks.Task> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -770,7 +770,7 @@ public async System.Threading.Tasks.Task> DeleteB // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -825,7 +825,7 @@ public ApiResponse DeleteBulkProcessListsWithHttpInfo(string /// /// (optional) /// Task of BulkProcessResult - public async System.Threading.Tasks.Task DeleteBulkProcessListsAsync(string accountId, string processAction, BulkProcessingLists bulkProcessingLists = null) + public async System.Threading.Tasks.Task DeleteBulkProcessListsAsync(string accountId, string processAction, BulkProcessingLists bulkProcessingLists = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBulkProcessListsAsyncWithHttpInfo(accountId, processAction, bulkProcessingLists); return localVarResponse.Data; @@ -839,7 +839,7 @@ public async System.Threading.Tasks.Task DeleteBulkProcessLis /// /// (optional) /// Task of ApiResponse (BulkProcessResult) - public async System.Threading.Tasks.Task> DeleteBulkProcessListsAsyncWithHttpInfo(string accountId, string processAction, BulkProcessingLists bulkProcessingLists = null) + public async System.Threading.Tasks.Task> DeleteBulkProcessListsAsyncWithHttpInfo(string accountId, string processAction, BulkProcessingLists bulkProcessingLists = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -893,7 +893,7 @@ public async System.Threading.Tasks.Task> DeleteB // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -947,7 +947,7 @@ public ApiResponse GetBulkProcessListWithHttpInfo(string accountId, stri /// /// /// Task of void - public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { await GetBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); } @@ -960,7 +960,7 @@ public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountI /// /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1010,7 +1010,7 @@ public async System.Threading.Tasks.Task> GetBulkProcessList // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1063,7 +1063,7 @@ public ApiResponse GetBulkProcessListsWithHttpInfo( /// The external account number (int) or account ID Guid. /// /// Task of BulkProcessingListSummaries - public async System.Threading.Tasks.Task GetBulkProcessListsAsync(string accountId, string processAction) + public async System.Threading.Tasks.Task GetBulkProcessListsAsync(string accountId, string processAction, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBulkProcessListsAsyncWithHttpInfo(accountId, processAction); return localVarResponse.Data; @@ -1076,7 +1076,7 @@ public async System.Threading.Tasks.Task GetBulkPro /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (BulkProcessingListSummaries) - public async System.Threading.Tasks.Task> GetBulkProcessListsAsyncWithHttpInfo(string accountId, string processAction) + public async System.Threading.Tasks.Task> GetBulkProcessListsAsyncWithHttpInfo(string accountId, string processAction, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1122,7 +1122,7 @@ public async System.Threading.Tasks.Task UpdateBulkProcessListWithHttpInfo(string accountId, s /// /// /// Task of void - public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { await UpdateBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); } @@ -1189,7 +1189,7 @@ public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accou /// /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1239,7 +1239,7 @@ public async System.Threading.Tasks.Task> UpdateBulkProcessL // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/BulkProcessDataSendApi.cs b/sdk/src/DocuSign.eSign/Api/BulkProcessDataSendApi.cs index 7f9647673..8a5c62a6a 100644 --- a/sdk/src/DocuSign.eSign/Api/BulkProcessDataSendApi.cs +++ b/sdk/src/DocuSign.eSign/Api/BulkProcessDataSendApi.cs @@ -326,7 +326,7 @@ public ApiResponse CreateBulkProcessRequestToQueueWithHttpI /// /// (optional) /// Task of BulkProcessResponse - public async System.Threading.Tasks.Task CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null) + public async System.Threading.Tasks.Task CreateBulkProcessRequestToQueueAsync(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBulkProcessRequestToQueueAsyncWithHttpInfo(accountId, processAction, bulkProcessListId, bulkProcessRequest); return localVarResponse.Data; @@ -341,7 +341,7 @@ public async System.Threading.Tasks.Task CreateBulkProcessR /// /// (optional) /// Task of ApiResponse (BulkProcessResponse) - public async System.Threading.Tasks.Task> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null) + public async System.Threading.Tasks.Task> CreateBulkProcessRequestToQueueAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, BulkProcessRequest bulkProcessRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -399,7 +399,7 @@ public async System.Threading.Tasks.Task> Creat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -454,7 +454,7 @@ public ApiResponse DeleteBulkProcessListWithHttpInfo(string a /// /// /// Task of BulkProcessResult - public async System.Threading.Tasks.Task DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task DeleteBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); return localVarResponse.Data; @@ -468,7 +468,7 @@ public async System.Threading.Tasks.Task DeleteBulkProcessLis /// /// /// Task of ApiResponse (BulkProcessResult) - public async System.Threading.Tasks.Task> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> DeleteBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -518,7 +518,7 @@ public async System.Threading.Tasks.Task> DeleteB // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -572,7 +572,7 @@ public ApiResponse GetBulkProcessListWithHttpInfo(string accountId, stri /// /// /// Task of void - public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { await GetBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); } @@ -585,7 +585,7 @@ public async System.Threading.Tasks.Task GetBulkProcessListAsync(string accountI /// /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> GetBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -635,7 +635,7 @@ public async System.Threading.Tasks.Task> GetBulkProcessList // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -690,7 +690,7 @@ public ApiResponse UpdateBulkProcessListWithHttpInfo(string accountId, s /// /// /// Task of void - public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { await UpdateBulkProcessListAsyncWithHttpInfo(accountId, processAction, bulkProcessListId); } @@ -703,7 +703,7 @@ public async System.Threading.Tasks.Task UpdateBulkProcessListAsync(string accou /// /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId) + public async System.Threading.Tasks.Task> UpdateBulkProcessListAsyncWithHttpInfo(string accountId, string processAction, string bulkProcessListId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -753,7 +753,7 @@ public async System.Threading.Tasks.Task> UpdateBulkProcessL // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/CloudStorageApi.cs b/sdk/src/DocuSign.eSign/Api/CloudStorageApi.cs index ff913e77b..f5fb8289a 100644 --- a/sdk/src/DocuSign.eSign/Api/CloudStorageApi.cs +++ b/sdk/src/DocuSign.eSign/Api/CloudStorageApi.cs @@ -485,7 +485,7 @@ public ApiResponse CreateProviderWithHttpInfo(string acco /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of CloudStorageProviders - public async System.Threading.Tasks.Task CreateProviderAsync(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null) + public async System.Threading.Tasks.Task CreateProviderAsync(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateProviderAsyncWithHttpInfo(accountId, userId, cloudStorageProviders); return localVarResponse.Data; @@ -499,7 +499,7 @@ public async System.Threading.Tasks.Task CreateProviderAs /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (CloudStorageProviders) - public async System.Threading.Tasks.Task> CreateProviderAsyncWithHttpInfo(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null) + public async System.Threading.Tasks.Task> CreateProviderAsyncWithHttpInfo(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -553,7 +553,7 @@ public async System.Threading.Tasks.Task> Cre // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -608,7 +608,7 @@ public ApiResponse DeleteProviderWithHttpInfo(string acco /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Task of CloudStorageProviders - public async System.Threading.Tasks.Task DeleteProviderAsync(string accountId, string userId, string serviceId) + public async System.Threading.Tasks.Task DeleteProviderAsync(string accountId, string userId, string serviceId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteProviderAsyncWithHttpInfo(accountId, userId, serviceId); return localVarResponse.Data; @@ -622,7 +622,7 @@ public async System.Threading.Tasks.Task DeleteProviderAs /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Task of ApiResponse (CloudStorageProviders) - public async System.Threading.Tasks.Task> DeleteProviderAsyncWithHttpInfo(string accountId, string userId, string serviceId) + public async System.Threading.Tasks.Task> DeleteProviderAsyncWithHttpInfo(string accountId, string userId, string serviceId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -672,7 +672,7 @@ public async System.Threading.Tasks.Task> Del // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -727,7 +727,7 @@ public ApiResponse DeleteProvidersWithHttpInfo(string acc /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of CloudStorageProviders - public async System.Threading.Tasks.Task DeleteProvidersAsync(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null) + public async System.Threading.Tasks.Task DeleteProvidersAsync(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteProvidersAsyncWithHttpInfo(accountId, userId, cloudStorageProviders); return localVarResponse.Data; @@ -741,7 +741,7 @@ public async System.Threading.Tasks.Task DeleteProvidersA /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (CloudStorageProviders) - public async System.Threading.Tasks.Task> DeleteProvidersAsyncWithHttpInfo(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null) + public async System.Threading.Tasks.Task> DeleteProvidersAsyncWithHttpInfo(string accountId, string userId, CloudStorageProviders cloudStorageProviders = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -795,7 +795,7 @@ public async System.Threading.Tasks.Task> Del // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -861,9 +861,9 @@ public ApiResponse GetProviderWithHttpInfo(string account /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Options for modifying the behavior of the function. /// Task of CloudStorageProviders - public async System.Threading.Tasks.Task GetProviderAsync(string accountId, string userId, string serviceId, CloudStorageApi.GetProviderOptions options = null) + public async System.Threading.Tasks.Task GetProviderAsync(string accountId, string userId, string serviceId, CloudStorageApi.GetProviderOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetProviderAsyncWithHttpInfo(accountId, userId, serviceId, options); + ApiResponse localVarResponse = await GetProviderAsyncWithHttpInfo(accountId, userId, serviceId, options, cancellationToken); return localVarResponse.Data; } @@ -876,7 +876,7 @@ public async System.Threading.Tasks.Task GetProviderAsync /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Options for modifying the behavior of the function. /// Task of ApiResponse (CloudStorageProviders) - public async System.Threading.Tasks.Task> GetProviderAsyncWithHttpInfo(string accountId, string userId, string serviceId, CloudStorageApi.GetProviderOptions options = null) + public async System.Threading.Tasks.Task> GetProviderAsyncWithHttpInfo(string accountId, string userId, string serviceId, CloudStorageApi.GetProviderOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -930,7 +930,7 @@ public async System.Threading.Tasks.Task> Get // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1011,9 +1011,9 @@ public ApiResponse ListWithHttpInfo(string accountId, string use /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of ExternalFolder - public async System.Threading.Tasks.Task ListAsync(string accountId, string userId, string serviceId, string folderId, CloudStorageApi.ListOptions options = null) + public async System.Threading.Tasks.Task ListAsync(string accountId, string userId, string serviceId, string folderId, CloudStorageApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, userId, serviceId, folderId, options); + ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, userId, serviceId, folderId, options, cancellationToken); return localVarResponse.Data; } @@ -1027,7 +1027,7 @@ public async System.Threading.Tasks.Task ListAsync(string accoun /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ExternalFolder) - public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, string userId, string serviceId, string folderId, CloudStorageApi.ListOptions options = null) + public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, string userId, string serviceId, string folderId, CloudStorageApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1091,7 +1091,7 @@ public async System.Threading.Tasks.Task> ListAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1167,9 +1167,9 @@ public ApiResponse ListFoldersWithHttpInfo(string accountId, str /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Options for modifying the behavior of the function. /// Task of ExternalFolder - public async System.Threading.Tasks.Task ListFoldersAsync(string accountId, string userId, string serviceId, CloudStorageApi.ListFoldersOptions options = null) + public async System.Threading.Tasks.Task ListFoldersAsync(string accountId, string userId, string serviceId, CloudStorageApi.ListFoldersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListFoldersAsyncWithHttpInfo(accountId, userId, serviceId, options); + ApiResponse localVarResponse = await ListFoldersAsyncWithHttpInfo(accountId, userId, serviceId, options, cancellationToken); return localVarResponse.Data; } @@ -1182,7 +1182,7 @@ public async System.Threading.Tasks.Task ListFoldersAsync(string /// The ID of the service to access. Valid values are the service name (\"Box\") or the numerical serviceId (\"4136\"). /// Options for modifying the behavior of the function. /// Task of ApiResponse (ExternalFolder) - public async System.Threading.Tasks.Task> ListFoldersAsyncWithHttpInfo(string accountId, string userId, string serviceId, CloudStorageApi.ListFoldersOptions options = null) + public async System.Threading.Tasks.Task> ListFoldersAsyncWithHttpInfo(string accountId, string userId, string serviceId, CloudStorageApi.ListFoldersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1241,7 +1241,7 @@ public async System.Threading.Tasks.Task> ListFolder // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1304,9 +1304,9 @@ public ApiResponse ListProvidersWithHttpInfo(string accou /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of CloudStorageProviders - public async System.Threading.Tasks.Task ListProvidersAsync(string accountId, string userId, CloudStorageApi.ListProvidersOptions options = null) + public async System.Threading.Tasks.Task ListProvidersAsync(string accountId, string userId, CloudStorageApi.ListProvidersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListProvidersAsyncWithHttpInfo(accountId, userId, options); + ApiResponse localVarResponse = await ListProvidersAsyncWithHttpInfo(accountId, userId, options, cancellationToken); return localVarResponse.Data; } @@ -1318,7 +1318,7 @@ public async System.Threading.Tasks.Task ListProvidersAsy /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of ApiResponse (CloudStorageProviders) - public async System.Threading.Tasks.Task> ListProvidersAsyncWithHttpInfo(string accountId, string userId, CloudStorageApi.ListProvidersOptions options = null) + public async System.Threading.Tasks.Task> ListProvidersAsyncWithHttpInfo(string accountId, string userId, CloudStorageApi.ListProvidersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1368,7 +1368,7 @@ public async System.Threading.Tasks.Task> Lis // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/ConnectApi.cs b/sdk/src/DocuSign.eSign/Api/ConnectApi.cs index 2fa7f7e58..4f59bde6b 100644 --- a/sdk/src/DocuSign.eSign/Api/ConnectApi.cs +++ b/sdk/src/DocuSign.eSign/Api/ConnectApi.cs @@ -1074,7 +1074,7 @@ public ApiResponse CreateConfigurationWithHttpInfo(s /// The external account number (int) or account ID Guid. /// (optional) /// Task of ConnectCustomConfiguration - public async System.Threading.Tasks.Task CreateConfigurationAsync(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null) + public async System.Threading.Tasks.Task CreateConfigurationAsync(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateConfigurationAsyncWithHttpInfo(accountId, connectCustomConfiguration); return localVarResponse.Data; @@ -1087,7 +1087,7 @@ public async System.Threading.Tasks.Task CreateConfi /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ConnectCustomConfiguration) - public async System.Threading.Tasks.Task> CreateConfigurationAsyncWithHttpInfo(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null) + public async System.Threading.Tasks.Task> CreateConfigurationAsyncWithHttpInfo(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1137,7 +1137,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1189,7 +1189,7 @@ public ApiResponse CreateConnectOAuthConfigWithHttpInfo(stri /// The external account number (int) or account ID Guid. /// (optional) /// Task of ConnectOAuthConfig - public async System.Threading.Tasks.Task CreateConnectOAuthConfigAsync(string accountId, ConnectOAuthConfig connectOAuthConfig = null) + public async System.Threading.Tasks.Task CreateConnectOAuthConfigAsync(string accountId, ConnectOAuthConfig connectOAuthConfig = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateConnectOAuthConfigAsyncWithHttpInfo(accountId, connectOAuthConfig); return localVarResponse.Data; @@ -1202,7 +1202,7 @@ public async System.Threading.Tasks.Task CreateConnectOAuthC /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ConnectOAuthConfig) - public async System.Threading.Tasks.Task> CreateConnectOAuthConfigAsyncWithHttpInfo(string accountId, ConnectOAuthConfig connectOAuthConfig = null) + public async System.Threading.Tasks.Task> CreateConnectOAuthConfigAsyncWithHttpInfo(string accountId, ConnectOAuthConfig connectOAuthConfig = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1252,7 +1252,7 @@ public async System.Threading.Tasks.Task> Create // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1303,7 +1303,7 @@ public ApiResponse DeleteConfigurationWithHttpInfo(string accountId, str /// The external account number (int) or account ID Guid. /// The ID of the custom Connect configuration being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteConfigurationAsync(string accountId, string connectId) + public async System.Threading.Tasks.Task DeleteConfigurationAsync(string accountId, string connectId, System.Threading.CancellationToken cancellationToken = default) { await DeleteConfigurationAsyncWithHttpInfo(accountId, connectId); } @@ -1315,7 +1315,7 @@ public async System.Threading.Tasks.Task DeleteConfigurationAsync(string account /// The external account number (int) or account ID Guid. /// The ID of the custom Connect configuration being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteConfigurationAsyncWithHttpInfo(string accountId, string connectId) + public async System.Threading.Tasks.Task> DeleteConfigurationAsyncWithHttpInfo(string accountId, string connectId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1361,7 +1361,7 @@ public async System.Threading.Tasks.Task> DeleteConfiguratio // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1410,7 +1410,7 @@ public ApiResponse DeleteConnectOAuthConfigWithHttpInfo(string accountId /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of void - public async System.Threading.Tasks.Task DeleteConnectOAuthConfigAsync(string accountId) + public async System.Threading.Tasks.Task DeleteConnectOAuthConfigAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { await DeleteConnectOAuthConfigAsyncWithHttpInfo(accountId); } @@ -1421,7 +1421,7 @@ public async System.Threading.Tasks.Task DeleteConnectOAuthConfigAsync(string ac /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteConnectOAuthConfigAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> DeleteConnectOAuthConfigAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1463,7 +1463,7 @@ public async System.Threading.Tasks.Task> DeleteConnectOAuth // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1516,7 +1516,7 @@ public ApiResponse DeleteEventFailureLogWithHttpInfo /// The external account number (int) or account ID Guid. /// The ID of the failed connect log entry. /// Task of ConnectDeleteFailureResult - public async System.Threading.Tasks.Task DeleteEventFailureLogAsync(string accountId, string failureId) + public async System.Threading.Tasks.Task DeleteEventFailureLogAsync(string accountId, string failureId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteEventFailureLogAsyncWithHttpInfo(accountId, failureId); return localVarResponse.Data; @@ -1529,7 +1529,7 @@ public async System.Threading.Tasks.Task DeleteEvent /// The external account number (int) or account ID Guid. /// The ID of the failed connect log entry. /// Task of ApiResponse (ConnectDeleteFailureResult) - public async System.Threading.Tasks.Task> DeleteEventFailureLogAsyncWithHttpInfo(string accountId, string failureId) + public async System.Threading.Tasks.Task> DeleteEventFailureLogAsyncWithHttpInfo(string accountId, string failureId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1575,7 +1575,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1626,7 +1626,7 @@ public ApiResponse DeleteEventLogWithHttpInfo(string accountId, string l /// The external account number (int) or account ID Guid. /// The ID of the connect log entry /// Task of void - public async System.Threading.Tasks.Task DeleteEventLogAsync(string accountId, string logId) + public async System.Threading.Tasks.Task DeleteEventLogAsync(string accountId, string logId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEventLogAsyncWithHttpInfo(accountId, logId); } @@ -1638,7 +1638,7 @@ public async System.Threading.Tasks.Task DeleteEventLogAsync(string accountId, s /// The external account number (int) or account ID Guid. /// The ID of the connect log entry /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEventLogAsyncWithHttpInfo(string accountId, string logId) + public async System.Threading.Tasks.Task> DeleteEventLogAsyncWithHttpInfo(string accountId, string logId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1684,7 +1684,7 @@ public async System.Threading.Tasks.Task> DeleteEventLogAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1733,7 +1733,7 @@ public ApiResponse DeleteEventLogsWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of void - public async System.Threading.Tasks.Task DeleteEventLogsAsync(string accountId) + public async System.Threading.Tasks.Task DeleteEventLogsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEventLogsAsyncWithHttpInfo(accountId); } @@ -1744,7 +1744,7 @@ public async System.Threading.Tasks.Task DeleteEventLogsAsync(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEventLogsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> DeleteEventLogsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1786,7 +1786,7 @@ public async System.Threading.Tasks.Task> DeleteEventLogsAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1839,7 +1839,7 @@ public ApiResponse DeleteMobileNotifiers /// The external account number (int) or account ID Guid. /// (optional) /// Task of MobileNotifierConfigurationInformation - public async System.Threading.Tasks.Task DeleteMobileNotifiersAsync(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null) + public async System.Threading.Tasks.Task DeleteMobileNotifiersAsync(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteMobileNotifiersAsyncWithHttpInfo(accountId, mobileNotifierConfigurationInformation); return localVarResponse.Data; @@ -1852,7 +1852,7 @@ public async System.Threading.Tasks.Task /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (MobileNotifierConfigurationInformation) - public async System.Threading.Tasks.Task> DeleteMobileNotifiersAsyncWithHttpInfo(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null) + public async System.Threading.Tasks.Task> DeleteMobileNotifiersAsyncWithHttpInfo(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1902,7 +1902,7 @@ public async System.Threading.Tasks.Task GetConfigurationWithHttpInfo(string acc /// The external account number (int) or account ID Guid. /// The ID of the custom Connect configuration being accessed. /// Task of ConnectConfigResults - public async System.Threading.Tasks.Task GetConfigurationAsync(string accountId, string connectId) + public async System.Threading.Tasks.Task GetConfigurationAsync(string accountId, string connectId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetConfigurationAsyncWithHttpInfo(accountId, connectId); return localVarResponse.Data; @@ -1967,7 +1967,7 @@ public async System.Threading.Tasks.Task GetConfigurationA /// The external account number (int) or account ID Guid. /// The ID of the custom Connect configuration being accessed. /// Task of ApiResponse (ConnectConfigResults) - public async System.Threading.Tasks.Task> GetConfigurationAsyncWithHttpInfo(string accountId, string connectId) + public async System.Threading.Tasks.Task> GetConfigurationAsyncWithHttpInfo(string accountId, string connectId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2013,7 +2013,7 @@ public async System.Threading.Tasks.Task> GetC // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2086,9 +2086,9 @@ public ApiResponse GetConnectAllUsersWithHttpInfo /// The ID of the custom Connect configuration being accessed. /// Options for modifying the behavior of the function. /// Task of IntegratedConnectUserInfoList - public async System.Threading.Tasks.Task GetConnectAllUsersAsync(string accountId, string connectId, ConnectApi.GetConnectAllUsersOptions options = null) + public async System.Threading.Tasks.Task GetConnectAllUsersAsync(string accountId, string connectId, ConnectApi.GetConnectAllUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetConnectAllUsersAsyncWithHttpInfo(accountId, connectId, options); + ApiResponse localVarResponse = await GetConnectAllUsersAsyncWithHttpInfo(accountId, connectId, options, cancellationToken); return localVarResponse.Data; } @@ -2100,7 +2100,7 @@ public async System.Threading.Tasks.Task GetConne /// The ID of the custom Connect configuration being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (IntegratedConnectUserInfoList) - public async System.Threading.Tasks.Task> GetConnectAllUsersAsyncWithHttpInfo(string accountId, string connectId, ConnectApi.GetConnectAllUsersOptions options = null) + public async System.Threading.Tasks.Task> GetConnectAllUsersAsyncWithHttpInfo(string accountId, string connectId, ConnectApi.GetConnectAllUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2155,7 +2155,7 @@ public async System.Threading.Tasks.Task GetConnectOAuthConfigWithHttpInfo(string /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ConnectOAuthConfig - public async System.Threading.Tasks.Task GetConnectOAuthConfigAsync(string accountId) + public async System.Threading.Tasks.Task GetConnectOAuthConfigAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetConnectOAuthConfigAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -2216,7 +2216,7 @@ public async System.Threading.Tasks.Task GetConnectOAuthConf /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (ConnectOAuthConfig) - public async System.Threading.Tasks.Task> GetConnectOAuthConfigAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetConnectOAuthConfigAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2258,7 +2258,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2321,9 +2321,9 @@ public ApiResponse GetEventLogWithHttpInfo(string accountId, string /// The ID of the connect log entry /// Options for modifying the behavior of the function. /// Task of ConnectLog - public async System.Threading.Tasks.Task GetEventLogAsync(string accountId, string logId, ConnectApi.GetEventLogOptions options = null) + public async System.Threading.Tasks.Task GetEventLogAsync(string accountId, string logId, ConnectApi.GetEventLogOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetEventLogAsyncWithHttpInfo(accountId, logId, options); + ApiResponse localVarResponse = await GetEventLogAsyncWithHttpInfo(accountId, logId, options, cancellationToken); return localVarResponse.Data; } @@ -2335,7 +2335,7 @@ public async System.Threading.Tasks.Task GetEventLogAsync(string acc /// The ID of the connect log entry /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConnectLog) - public async System.Threading.Tasks.Task> GetEventLogAsyncWithHttpInfo(string accountId, string logId, ConnectApi.GetEventLogOptions options = null) + public async System.Threading.Tasks.Task> GetEventLogAsyncWithHttpInfo(string accountId, string logId, ConnectApi.GetEventLogOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2385,7 +2385,7 @@ public async System.Threading.Tasks.Task> GetEventLogAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2434,7 +2434,7 @@ public ApiResponse ListConfigurationsWithHttpInfo(string a /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ConnectConfigResults - public async System.Threading.Tasks.Task ListConfigurationsAsync(string accountId) + public async System.Threading.Tasks.Task ListConfigurationsAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListConfigurationsAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -2446,7 +2446,7 @@ public async System.Threading.Tasks.Task ListConfiguration /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (ConnectConfigResults) - public async System.Threading.Tasks.Task> ListConfigurationsAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListConfigurationsAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2488,7 +2488,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2550,9 +2550,9 @@ public ApiResponse ListEventFailureLogsWithHttpInfo(string accountI /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ConnectLogs - public async System.Threading.Tasks.Task ListEventFailureLogsAsync(string accountId, ConnectApi.ListEventFailureLogsOptions options = null) + public async System.Threading.Tasks.Task ListEventFailureLogsAsync(string accountId, ConnectApi.ListEventFailureLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListEventFailureLogsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListEventFailureLogsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -2563,7 +2563,7 @@ public async System.Threading.Tasks.Task ListEventFailureLogsAsync( /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConnectLogs) - public async System.Threading.Tasks.Task> ListEventFailureLogsAsyncWithHttpInfo(string accountId, ConnectApi.ListEventFailureLogsOptions options = null) + public async System.Threading.Tasks.Task> ListEventFailureLogsAsyncWithHttpInfo(string accountId, ConnectApi.ListEventFailureLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2610,7 +2610,7 @@ public async System.Threading.Tasks.Task> ListEventFail // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2672,9 +2672,9 @@ public ApiResponse ListEventLogsWithHttpInfo(string accountId, Conn /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ConnectLogs - public async System.Threading.Tasks.Task ListEventLogsAsync(string accountId, ConnectApi.ListEventLogsOptions options = null) + public async System.Threading.Tasks.Task ListEventLogsAsync(string accountId, ConnectApi.ListEventLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListEventLogsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListEventLogsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -2685,7 +2685,7 @@ public async System.Threading.Tasks.Task ListEventLogsAsync(string /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConnectLogs) - public async System.Threading.Tasks.Task> ListEventLogsAsyncWithHttpInfo(string accountId, ConnectApi.ListEventLogsOptions options = null) + public async System.Threading.Tasks.Task> ListEventLogsAsyncWithHttpInfo(string accountId, ConnectApi.ListEventLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2732,7 +2732,7 @@ public async System.Threading.Tasks.Task> ListEventLogs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2781,7 +2781,7 @@ public ApiResponse ListMobileNotifiersWi /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of MobileNotifierConfigurationInformation - public async System.Threading.Tasks.Task ListMobileNotifiersAsync(string accountId) + public async System.Threading.Tasks.Task ListMobileNotifiersAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListMobileNotifiersAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -2793,7 +2793,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (MobileNotifierConfigurationInformation) - public async System.Threading.Tasks.Task> ListMobileNotifiersAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListMobileNotifiersAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2835,7 +2835,7 @@ public async System.Threading.Tasks.Task ListUsersWithHttpInfo(string accountI /// The ID of the custom Connect configuration being accessed. /// Options for modifying the behavior of the function. /// Task of IntegratedUserInfoList - public async System.Threading.Tasks.Task ListUsersAsync(string accountId, string connectId, ConnectApi.ListUsersOptions options = null) + public async System.Threading.Tasks.Task ListUsersAsync(string accountId, string connectId, ConnectApi.ListUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListUsersAsyncWithHttpInfo(accountId, connectId, options); + ApiResponse localVarResponse = await ListUsersAsyncWithHttpInfo(accountId, connectId, options, cancellationToken); return localVarResponse.Data; } @@ -2922,7 +2922,7 @@ public async System.Threading.Tasks.Task ListUsersAsync( /// The ID of the custom Connect configuration being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (IntegratedUserInfoList) - public async System.Threading.Tasks.Task> ListUsersAsyncWithHttpInfo(string accountId, string connectId, ConnectApi.ListUsersOptions options = null) + public async System.Threading.Tasks.Task> ListUsersAsyncWithHttpInfo(string accountId, string connectId, ConnectApi.ListUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2977,7 +2977,7 @@ public async System.Threading.Tasks.Task> Li // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3029,7 +3029,7 @@ public ApiResponse RetryEventForEnvelopeWithHttpInfo(stri /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ConnectFailureResults - public async System.Threading.Tasks.Task RetryEventForEnvelopeAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task RetryEventForEnvelopeAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await RetryEventForEnvelopeAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -3042,7 +3042,7 @@ public async System.Threading.Tasks.Task RetryEventForEnv /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (ConnectFailureResults) - public async System.Threading.Tasks.Task> RetryEventForEnvelopeAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> RetryEventForEnvelopeAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3088,7 +3088,7 @@ public async System.Threading.Tasks.Task> Ret // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3140,7 +3140,7 @@ public ApiResponse RetryEventForEnvelopesWithHttpInfo(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of ConnectFailureResults - public async System.Threading.Tasks.Task RetryEventForEnvelopesAsync(string accountId, ConnectFailureFilter connectFailureFilter = null) + public async System.Threading.Tasks.Task RetryEventForEnvelopesAsync(string accountId, ConnectFailureFilter connectFailureFilter = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await RetryEventForEnvelopesAsyncWithHttpInfo(accountId, connectFailureFilter); return localVarResponse.Data; @@ -3153,7 +3153,7 @@ public async System.Threading.Tasks.Task RetryEventForEnv /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ConnectFailureResults) - public async System.Threading.Tasks.Task> RetryEventForEnvelopesAsyncWithHttpInfo(string accountId, ConnectFailureFilter connectFailureFilter = null) + public async System.Threading.Tasks.Task> RetryEventForEnvelopesAsyncWithHttpInfo(string accountId, ConnectFailureFilter connectFailureFilter = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3203,7 +3203,7 @@ public async System.Threading.Tasks.Task> Ret // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3255,7 +3255,7 @@ public ApiResponse UpdateConfigurationWithHttpInfo(s /// The external account number (int) or account ID Guid. /// (optional) /// Task of ConnectCustomConfiguration - public async System.Threading.Tasks.Task UpdateConfigurationAsync(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null) + public async System.Threading.Tasks.Task UpdateConfigurationAsync(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateConfigurationAsyncWithHttpInfo(accountId, connectCustomConfiguration); return localVarResponse.Data; @@ -3268,7 +3268,7 @@ public async System.Threading.Tasks.Task UpdateConfi /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ConnectCustomConfiguration) - public async System.Threading.Tasks.Task> UpdateConfigurationAsyncWithHttpInfo(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null) + public async System.Threading.Tasks.Task> UpdateConfigurationAsyncWithHttpInfo(string accountId, ConnectCustomConfiguration connectCustomConfiguration = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3318,7 +3318,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3370,7 +3370,7 @@ public ApiResponse UpdateMobileNotifiers /// The external account number (int) or account ID Guid. /// (optional) /// Task of MobileNotifierConfigurationInformation - public async System.Threading.Tasks.Task UpdateMobileNotifiersAsync(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null) + public async System.Threading.Tasks.Task UpdateMobileNotifiersAsync(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateMobileNotifiersAsyncWithHttpInfo(accountId, mobileNotifierConfigurationInformation); return localVarResponse.Data; @@ -3383,7 +3383,7 @@ public async System.Threading.Tasks.Task /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (MobileNotifierConfigurationInformation) - public async System.Threading.Tasks.Task> UpdateMobileNotifiersAsyncWithHttpInfo(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null) + public async System.Threading.Tasks.Task> UpdateMobileNotifiersAsyncWithHttpInfo(string accountId, MobileNotifierConfigurationInformation mobileNotifierConfigurationInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3433,7 +3433,7 @@ public async System.Threading.Tasks.Task CreateWithHttpInfo(string accountId, TabMetadata /// The external account number (int) or account ID Guid. /// (optional) /// Task of TabMetadata - public async System.Threading.Tasks.Task CreateAsync(string accountId, TabMetadata tabMetadata = null) + public async System.Threading.Tasks.Task CreateAsync(string accountId, TabMetadata tabMetadata = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateAsyncWithHttpInfo(accountId, tabMetadata); return localVarResponse.Data; @@ -363,7 +363,7 @@ public async System.Threading.Tasks.Task CreateAsync(string account /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (TabMetadata) - public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(string accountId, TabMetadata tabMetadata = null) + public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(string accountId, TabMetadata tabMetadata = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -413,7 +413,7 @@ public async System.Threading.Tasks.Task> CreateAsyncWi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -464,7 +464,7 @@ public ApiResponse DeleteWithHttpInfo(string accountId, string customTab /// The external account number (int) or account ID Guid. /// /// Task of void - public async System.Threading.Tasks.Task DeleteAsync(string accountId, string customTabId) + public async System.Threading.Tasks.Task DeleteAsync(string accountId, string customTabId, System.Threading.CancellationToken cancellationToken = default) { await DeleteAsyncWithHttpInfo(accountId, customTabId); } @@ -476,7 +476,7 @@ public async System.Threading.Tasks.Task DeleteAsync(string accountId, string cu /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId, string customTabId) + public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId, string customTabId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -522,7 +522,7 @@ public async System.Threading.Tasks.Task> DeleteAsyncWithHtt // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -575,7 +575,7 @@ public ApiResponse GetWithHttpInfo(string accountId, string customT /// The external account number (int) or account ID Guid. /// /// Task of TabMetadata - public async System.Threading.Tasks.Task GetAsync(string accountId, string customTabId) + public async System.Threading.Tasks.Task GetAsync(string accountId, string customTabId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetAsyncWithHttpInfo(accountId, customTabId); return localVarResponse.Data; @@ -588,7 +588,7 @@ public async System.Threading.Tasks.Task GetAsync(string accountId, /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (TabMetadata) - public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string customTabId) + public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string customTabId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -634,7 +634,7 @@ public async System.Threading.Tasks.Task> GetAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -694,9 +694,9 @@ public ApiResponse ListWithHttpInfo(string accountId, CustomTab /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of TabMetadataList - public async System.Threading.Tasks.Task ListAsync(string accountId, CustomTabsApi.ListOptions options = null) + public async System.Threading.Tasks.Task ListAsync(string accountId, CustomTabsApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -707,7 +707,7 @@ public async System.Threading.Tasks.Task ListAsync(string accou /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (TabMetadataList) - public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, CustomTabsApi.ListOptions options = null) + public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, CustomTabsApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -753,7 +753,7 @@ public async System.Threading.Tasks.Task> ListAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -808,7 +808,7 @@ public ApiResponse UpdateWithHttpInfo(string accountId, string cust /// /// (optional) /// Task of TabMetadata - public async System.Threading.Tasks.Task UpdateAsync(string accountId, string customTabId, TabMetadata tabMetadata = null) + public async System.Threading.Tasks.Task UpdateAsync(string accountId, string customTabId, TabMetadata tabMetadata = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateAsyncWithHttpInfo(accountId, customTabId, tabMetadata); return localVarResponse.Data; @@ -822,7 +822,7 @@ public async System.Threading.Tasks.Task UpdateAsync(string account /// /// (optional) /// Task of ApiResponse (TabMetadata) - public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string customTabId, TabMetadata tabMetadata = null) + public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string customTabId, TabMetadata tabMetadata = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -876,7 +876,7 @@ public async System.Threading.Tasks.Task> UpdateAsyncWi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/DiagnosticsApi.cs b/sdk/src/DocuSign.eSign/Api/DiagnosticsApi.cs index 5044e5a33..e39933193 100644 --- a/sdk/src/DocuSign.eSign/Api/DiagnosticsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/DiagnosticsApi.cs @@ -387,7 +387,7 @@ public ApiResponse DeleteRequestLogsWithHttpInfo() /// /// Thrown when fails to make API call /// Task of void - public async System.Threading.Tasks.Task DeleteRequestLogsAsync() + public async System.Threading.Tasks.Task DeleteRequestLogsAsync(, System.Threading.CancellationToken cancellationToken = default) { await DeleteRequestLogsAsyncWithHttpInfo(); } @@ -397,7 +397,7 @@ public async System.Threading.Tasks.Task DeleteRequestLogsAsync() /// /// Thrown when fails to make API call /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteRequestLogsAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> DeleteRequestLogsAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/diagnostics/request_logs"; @@ -435,7 +435,7 @@ public async System.Threading.Tasks.Task> DeleteRequestLogsA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -485,7 +485,7 @@ public System.IO.Stream GetRequestLog(string requestLogId) /// Thrown when fails to make API call /// /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetRequestLogAsync(string requestLogId) + public async System.Threading.Tasks.Task GetRequestLogAsync(string requestLogId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetRequestLogAsyncWithHttpInfo(requestLogId); return localVarResponse.Data; @@ -497,7 +497,7 @@ public System.IO.Stream GetRequestLog(string requestLogId) /// Thrown when fails to make API call /// /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetRequestLogAsyncWithHttpInfo(string requestLogId) + public async System.Threading.Tasks.Task> GetRequestLogAsyncWithHttpInfo(string requestLogId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'requestLogId' is set if (requestLogId == null) @@ -539,7 +539,7 @@ public System.IO.Stream GetRequestLog(string requestLogId) // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -585,7 +585,7 @@ public ApiResponse GetRequestLogSettingsWithHttp /// /// Thrown when fails to make API call /// Task of DiagnosticsSettingsInformation - public async System.Threading.Tasks.Task GetRequestLogSettingsAsync() + public async System.Threading.Tasks.Task GetRequestLogSettingsAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetRequestLogSettingsAsyncWithHttpInfo(); return localVarResponse.Data; @@ -596,7 +596,7 @@ public async System.Threading.Tasks.Task GetRequ /// /// Thrown when fails to make API call /// Task of ApiResponse (DiagnosticsSettingsInformation) - public async System.Threading.Tasks.Task> GetRequestLogSettingsAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetRequestLogSettingsAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/diagnostics/settings"; @@ -634,7 +634,7 @@ public async System.Threading.Tasks.Task GetResourcesWithHttpInfo() /// /// Thrown when fails to make API call /// Task of ResourceInformation - public async System.Threading.Tasks.Task GetResourcesAsync() + public async System.Threading.Tasks.Task GetResourcesAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetResourcesAsyncWithHttpInfo(); return localVarResponse.Data; @@ -691,7 +691,7 @@ public async System.Threading.Tasks.Task GetResourcesAsync( /// /// Thrown when fails to make API call /// Task of ApiResponse (ResourceInformation) - public async System.Threading.Tasks.Task> GetResourcesAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetResourcesAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1"; @@ -729,7 +729,7 @@ public async System.Threading.Tasks.Task> GetRe // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -775,7 +775,7 @@ public ApiResponse GetServiceWithHttpInfo() /// /// Thrown when fails to make API call /// Task of ServiceInformation - public async System.Threading.Tasks.Task GetServiceAsync() + public async System.Threading.Tasks.Task GetServiceAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetServiceAsyncWithHttpInfo(); return localVarResponse.Data; @@ -786,7 +786,7 @@ public async System.Threading.Tasks.Task GetServiceAsync() /// /// Thrown when fails to make API call /// Task of ApiResponse (ServiceInformation) - public async System.Threading.Tasks.Task> GetServiceAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetServiceAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/service_information"; @@ -824,7 +824,7 @@ public async System.Threading.Tasks.Task> GetSer // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -881,9 +881,9 @@ public ApiResponse ListRequestLogsWithHttpInfo(Diagnostics /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of ApiRequestLogsResult - public async System.Threading.Tasks.Task ListRequestLogsAsync(DiagnosticsApi.ListRequestLogsOptions options = null) + public async System.Threading.Tasks.Task ListRequestLogsAsync(DiagnosticsApi.ListRequestLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListRequestLogsAsyncWithHttpInfo(options); + ApiResponse localVarResponse = await ListRequestLogsAsyncWithHttpInfo(options, cancellationToken); return localVarResponse.Data; } @@ -893,7 +893,7 @@ public async System.Threading.Tasks.Task ListRequestLogsAs /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of ApiResponse (ApiRequestLogsResult) - public async System.Threading.Tasks.Task> ListRequestLogsAsyncWithHttpInfo(DiagnosticsApi.ListRequestLogsOptions options = null) + public async System.Threading.Tasks.Task> ListRequestLogsAsyncWithHttpInfo(DiagnosticsApi.ListRequestLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/diagnostics/request_logs"; @@ -935,7 +935,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -984,7 +984,7 @@ public ApiResponse UpdateRequestLogSettingsWithH /// Thrown when fails to make API call /// (optional) /// Task of DiagnosticsSettingsInformation - public async System.Threading.Tasks.Task UpdateRequestLogSettingsAsync(DiagnosticsSettingsInformation diagnosticsSettingsInformation = null) + public async System.Threading.Tasks.Task UpdateRequestLogSettingsAsync(DiagnosticsSettingsInformation diagnosticsSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateRequestLogSettingsAsyncWithHttpInfo(diagnosticsSettingsInformation); return localVarResponse.Data; @@ -996,7 +996,7 @@ public async System.Threading.Tasks.Task UpdateR /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse (DiagnosticsSettingsInformation) - public async System.Threading.Tasks.Task> UpdateRequestLogSettingsAsyncWithHttpInfo(DiagnosticsSettingsInformation diagnosticsSettingsInformation = null) + public async System.Threading.Tasks.Task> UpdateRequestLogSettingsAsyncWithHttpInfo(DiagnosticsSettingsInformation diagnosticsSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/diagnostics/settings"; @@ -1042,7 +1042,7 @@ public async System.Threading.Tasks.Task CreateBCCEmailArchiveWithHttpInfo(string acc /// The external account number (int) or account ID Guid. /// (optional) /// Task of BccEmailArchive - public async System.Threading.Tasks.Task CreateBCCEmailArchiveAsync(string accountId, BccEmailArchive bccEmailArchive = null) + public async System.Threading.Tasks.Task CreateBCCEmailArchiveAsync(string accountId, BccEmailArchive bccEmailArchive = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateBCCEmailArchiveAsyncWithHttpInfo(accountId, bccEmailArchive); return localVarResponse.Data; @@ -317,7 +317,7 @@ public async System.Threading.Tasks.Task CreateBCCEmailArchiveA /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (BccEmailArchive) - public async System.Threading.Tasks.Task> CreateBCCEmailArchiveAsyncWithHttpInfo(string accountId, BccEmailArchive bccEmailArchive = null) + public async System.Threading.Tasks.Task> CreateBCCEmailArchiveAsyncWithHttpInfo(string accountId, BccEmailArchive bccEmailArchive = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -367,7 +367,7 @@ public async System.Threading.Tasks.Task> CreateBCC // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -418,7 +418,7 @@ public ApiResponse DeleteBCCEmailArchiveWithHttpInfo(string accountId, s /// The external account number (int) or account ID Guid. /// /// Task of void - public async System.Threading.Tasks.Task DeleteBCCEmailArchiveAsync(string accountId, string bccEmailArchiveId) + public async System.Threading.Tasks.Task DeleteBCCEmailArchiveAsync(string accountId, string bccEmailArchiveId, System.Threading.CancellationToken cancellationToken = default) { await DeleteBCCEmailArchiveAsyncWithHttpInfo(accountId, bccEmailArchiveId); } @@ -430,7 +430,7 @@ public async System.Threading.Tasks.Task DeleteBCCEmailArchiveAsync(string accou /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteBCCEmailArchiveAsyncWithHttpInfo(string accountId, string bccEmailArchiveId) + public async System.Threading.Tasks.Task> DeleteBCCEmailArchiveAsyncWithHttpInfo(string accountId, string bccEmailArchiveId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -476,7 +476,7 @@ public async System.Threading.Tasks.Task> DeleteBCCEmailArch // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -542,9 +542,9 @@ public ApiResponse GetBCCEmailArchiveHistoryListWith /// /// Options for modifying the behavior of the function. /// Task of BccEmailArchiveHistoryList - public async System.Threading.Tasks.Task GetBCCEmailArchiveHistoryListAsync(string accountId, string bccEmailArchiveId, EmailArchiveApi.GetBCCEmailArchiveHistoryListOptions options = null) + public async System.Threading.Tasks.Task GetBCCEmailArchiveHistoryListAsync(string accountId, string bccEmailArchiveId, EmailArchiveApi.GetBCCEmailArchiveHistoryListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBCCEmailArchiveHistoryListAsyncWithHttpInfo(accountId, bccEmailArchiveId, options); + ApiResponse localVarResponse = await GetBCCEmailArchiveHistoryListAsyncWithHttpInfo(accountId, bccEmailArchiveId, options, cancellationToken); return localVarResponse.Data; } @@ -556,7 +556,7 @@ public async System.Threading.Tasks.Task GetBCCEmail /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (BccEmailArchiveHistoryList) - public async System.Threading.Tasks.Task> GetBCCEmailArchiveHistoryListAsyncWithHttpInfo(string accountId, string bccEmailArchiveId, EmailArchiveApi.GetBCCEmailArchiveHistoryListOptions options = null) + public async System.Threading.Tasks.Task> GetBCCEmailArchiveHistoryListAsyncWithHttpInfo(string accountId, string bccEmailArchiveId, EmailArchiveApi.GetBCCEmailArchiveHistoryListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -607,7 +607,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -669,9 +669,9 @@ public ApiResponse GetBCCEmailArchiveListWithHttpInfo(strin /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of BccEmailArchiveList - public async System.Threading.Tasks.Task GetBCCEmailArchiveListAsync(string accountId, EmailArchiveApi.GetBCCEmailArchiveListOptions options = null) + public async System.Threading.Tasks.Task GetBCCEmailArchiveListAsync(string accountId, EmailArchiveApi.GetBCCEmailArchiveListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetBCCEmailArchiveListAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetBCCEmailArchiveListAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -682,7 +682,7 @@ public async System.Threading.Tasks.Task GetBCCEmailArchive /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BccEmailArchiveList) - public async System.Threading.Tasks.Task> GetBCCEmailArchiveListAsyncWithHttpInfo(string accountId, EmailArchiveApi.GetBCCEmailArchiveListOptions options = null) + public async System.Threading.Tasks.Task> GetBCCEmailArchiveListAsyncWithHttpInfo(string accountId, EmailArchiveApi.GetBCCEmailArchiveListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -729,7 +729,7 @@ public async System.Threading.Tasks.Task> GetBC // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs b/sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs index 6eb042938..805dbefe6 100644 --- a/sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs +++ b/sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs @@ -6586,9 +6586,9 @@ public ApiResponse ApplyTemplateWithHttpInfo(string accoun /// (optional) /// Options for modifying the behavior of the function. /// Task of DocumentTemplateList - public async System.Threading.Tasks.Task ApplyTemplateAsync(string accountId, string envelopeId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateOptions options = null) + public async System.Threading.Tasks.Task ApplyTemplateAsync(string accountId, string envelopeId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ApplyTemplateAsyncWithHttpInfo(accountId, envelopeId, documentTemplateList, options); + ApiResponse localVarResponse = await ApplyTemplateAsyncWithHttpInfo(accountId, envelopeId, documentTemplateList, options, cancellationToken); return localVarResponse.Data; } @@ -6601,7 +6601,7 @@ public async System.Threading.Tasks.Task ApplyTemplateAsyn /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (DocumentTemplateList) - public async System.Threading.Tasks.Task> ApplyTemplateAsyncWithHttpInfo(string accountId, string envelopeId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateOptions options = null) + public async System.Threading.Tasks.Task> ApplyTemplateAsyncWithHttpInfo(string accountId, string envelopeId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6659,7 +6659,7 @@ public async System.Threading.Tasks.Task> Appl // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6728,9 +6728,9 @@ public ApiResponse ApplyTemplateToDocumentWithHttpInfo(str /// (optional) /// Options for modifying the behavior of the function. /// Task of DocumentTemplateList - public async System.Threading.Tasks.Task ApplyTemplateToDocumentAsync(string accountId, string envelopeId, string documentId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateToDocumentOptions options = null) + public async System.Threading.Tasks.Task ApplyTemplateToDocumentAsync(string accountId, string envelopeId, string documentId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateToDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ApplyTemplateToDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, documentTemplateList, options); + ApiResponse localVarResponse = await ApplyTemplateToDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, documentTemplateList, options, cancellationToken); return localVarResponse.Data; } @@ -6744,7 +6744,7 @@ public async System.Threading.Tasks.Task ApplyTemplateToDo /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (DocumentTemplateList) - public async System.Threading.Tasks.Task> ApplyTemplateToDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateToDocumentOptions options = null) + public async System.Threading.Tasks.Task> ApplyTemplateToDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentTemplateList documentTemplateList = null, EnvelopesApi.ApplyTemplateToDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6806,7 +6806,7 @@ public async System.Threading.Tasks.Task> Appl // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6858,7 +6858,7 @@ public ApiResponse CreateChunkedUploadWithHttpInfo(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of ChunkedUploadResponse - public async System.Threading.Tasks.Task CreateChunkedUploadAsync(string accountId, ChunkedUploadRequest chunkedUploadRequest = null) + public async System.Threading.Tasks.Task CreateChunkedUploadAsync(string accountId, ChunkedUploadRequest chunkedUploadRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadRequest); return localVarResponse.Data; @@ -6871,7 +6871,7 @@ public async System.Threading.Tasks.Task CreateChunkedUpl /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ChunkedUploadResponse) - public async System.Threading.Tasks.Task> CreateChunkedUploadAsyncWithHttpInfo(string accountId, ChunkedUploadRequest chunkedUploadRequest = null) + public async System.Threading.Tasks.Task> CreateChunkedUploadAsyncWithHttpInfo(string accountId, ChunkedUploadRequest chunkedUploadRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6921,7 +6921,7 @@ public async System.Threading.Tasks.Task> Cre // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6973,7 +6973,7 @@ public ApiResponse CreateConsoleViewWithHttpInfo(string accountId, Cons /// The external account number (int) or account ID Guid. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateConsoleViewAsync(string accountId, ConsoleViewRequest consoleViewRequest = null) + public async System.Threading.Tasks.Task CreateConsoleViewAsync(string accountId, ConsoleViewRequest consoleViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateConsoleViewAsyncWithHttpInfo(accountId, consoleViewRequest); return localVarResponse.Data; @@ -6986,7 +6986,7 @@ public async System.Threading.Tasks.Task CreateConsoleViewAsync(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateConsoleViewAsyncWithHttpInfo(string accountId, ConsoleViewRequest consoleViewRequest = null) + public async System.Threading.Tasks.Task> CreateConsoleViewAsyncWithHttpInfo(string accountId, ConsoleViewRequest consoleViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7036,7 +7036,7 @@ public async System.Threading.Tasks.Task> CreateConsoleView // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7091,7 +7091,7 @@ public ApiResponse CreateCorrectViewWithHttpInfo(string accountId, stri /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateCorrectViewAsync(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null) + public async System.Threading.Tasks.Task CreateCorrectViewAsync(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateCorrectViewAsyncWithHttpInfo(accountId, envelopeId, correctViewRequest); return localVarResponse.Data; @@ -7105,7 +7105,7 @@ public async System.Threading.Tasks.Task CreateCorrectViewAsync(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateCorrectViewAsyncWithHttpInfo(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null) + public async System.Threading.Tasks.Task> CreateCorrectViewAsyncWithHttpInfo(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7159,7 +7159,7 @@ public async System.Threading.Tasks.Task> CreateCorrectView // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7214,7 +7214,7 @@ public ApiResponse CreateCustomFieldsWithHttpInfo(string accountId /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task CreateCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task CreateCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateCustomFieldsAsyncWithHttpInfo(accountId, envelopeId, customFields); return localVarResponse.Data; @@ -7228,7 +7228,7 @@ public async System.Threading.Tasks.Task CreateCustomFieldsAsync(s /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> CreateCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task> CreateCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7282,7 +7282,7 @@ public async System.Threading.Tasks.Task> CreateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7340,7 +7340,7 @@ public ApiResponse CreateDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task CreateDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task CreateDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateDocumentFieldsAsyncWithHttpInfo(accountId, envelopeId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -7355,7 +7355,7 @@ public async System.Threading.Tasks.Task CreateDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> CreateDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> CreateDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7413,7 +7413,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7471,7 +7471,7 @@ public ApiResponse CreateDocumentResponsiveHtmlPreviewW /// The ID of the document being accessed. /// (optional) /// Task of DocumentHtmlDefinitions - public async System.Threading.Tasks.Task CreateDocumentResponsiveHtmlPreviewAsync(string accountId, string envelopeId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task CreateDocumentResponsiveHtmlPreviewAsync(string accountId, string envelopeId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(accountId, envelopeId, documentId, documentHtmlDefinition); return localVarResponse.Data; @@ -7486,7 +7486,7 @@ public async System.Threading.Tasks.Task CreateDocument /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentHtmlDefinitions) - public async System.Threading.Tasks.Task> CreateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task> CreateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7544,7 +7544,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7602,7 +7602,7 @@ public ApiResponse CreateDocumentTabsWithHttpInfo(string accountId, string /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task CreateDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task CreateDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateDocumentTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, tabs); return localVarResponse.Data; @@ -7617,7 +7617,7 @@ public async System.Threading.Tasks.Task CreateDocumentTabsAsync(string ac /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> CreateDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task> CreateDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7675,7 +7675,7 @@ public async System.Threading.Tasks.Task> CreateDocumentTabsAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7730,7 +7730,7 @@ public ApiResponse CreateEditViewWithHttpInfo(string accountId, string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateEditViewAsync(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task CreateEditViewAsync(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEditViewAsyncWithHttpInfo(accountId, envelopeId, returnUrlRequest); return localVarResponse.Data; @@ -7744,7 +7744,7 @@ public async System.Threading.Tasks.Task CreateEditViewAsync(string acc /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateEditViewAsyncWithHttpInfo(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task> CreateEditViewAsyncWithHttpInfo(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7798,7 +7798,7 @@ public async System.Threading.Tasks.Task> CreateEditViewAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7853,7 +7853,7 @@ public ApiResponse CreateEmailSettingsWithHttpInfo(string account /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EmailSettings - public async System.Threading.Tasks.Task CreateEmailSettingsAsync(string accountId, string envelopeId, EmailSettings emailSettings = null) + public async System.Threading.Tasks.Task CreateEmailSettingsAsync(string accountId, string envelopeId, EmailSettings emailSettings = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEmailSettingsAsyncWithHttpInfo(accountId, envelopeId, emailSettings); return localVarResponse.Data; @@ -7867,7 +7867,7 @@ public async System.Threading.Tasks.Task CreateEmailSettingsAsync /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EmailSettings) - public async System.Threading.Tasks.Task> CreateEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EmailSettings emailSettings = null) + public async System.Threading.Tasks.Task> CreateEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EmailSettings emailSettings = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7921,7 +7921,7 @@ public async System.Threading.Tasks.Task> CreateEmail // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7992,9 +7992,9 @@ public ApiResponse CreateEnvelopeWithHttpInfo(string accountId, /// (optional) /// Options for modifying the behavior of the function. /// Task of EnvelopeSummary - public async System.Threading.Tasks.Task CreateEnvelopeAsync(string accountId, EnvelopeDefinition envelopeDefinition = null, EnvelopesApi.CreateEnvelopeOptions options = null) + public async System.Threading.Tasks.Task CreateEnvelopeAsync(string accountId, EnvelopeDefinition envelopeDefinition = null, EnvelopesApi.CreateEnvelopeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateEnvelopeAsyncWithHttpInfo(accountId, envelopeDefinition, options); + ApiResponse localVarResponse = await CreateEnvelopeAsyncWithHttpInfo(accountId, envelopeDefinition, options, cancellationToken); return localVarResponse.Data; } @@ -8006,7 +8006,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeAsync(st /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeSummary) - public async System.Threading.Tasks.Task> CreateEnvelopeAsyncWithHttpInfo(string accountId, EnvelopeDefinition envelopeDefinition = null, EnvelopesApi.CreateEnvelopeOptions options = null) + public async System.Threading.Tasks.Task> CreateEnvelopeAsyncWithHttpInfo(string accountId, EnvelopeDefinition envelopeDefinition = null, EnvelopesApi.CreateEnvelopeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8064,7 +8064,7 @@ public async System.Threading.Tasks.Task> CreateEnv // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8119,7 +8119,7 @@ public ApiResponse CreateEnvelopeCommentsWithHttpInfo(stri /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of CommentHistoryResult - public async System.Threading.Tasks.Task CreateEnvelopeCommentsAsync(string accountId, string envelopeId, CommentsPublish commentsPublish = null) + public async System.Threading.Tasks.Task CreateEnvelopeCommentsAsync(string accountId, string envelopeId, CommentsPublish commentsPublish = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEnvelopeCommentsAsyncWithHttpInfo(accountId, envelopeId, commentsPublish); return localVarResponse.Data; @@ -8133,7 +8133,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeCom /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (CommentHistoryResult) - public async System.Threading.Tasks.Task> CreateEnvelopeCommentsAsyncWithHttpInfo(string accountId, string envelopeId, CommentsPublish commentsPublish = null) + public async System.Threading.Tasks.Task> CreateEnvelopeCommentsAsyncWithHttpInfo(string accountId, string envelopeId, CommentsPublish commentsPublish = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8187,7 +8187,7 @@ public async System.Threading.Tasks.Task> Crea // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8242,7 +8242,7 @@ public ApiResponse CreateEnvelopeRecipientPreviewWithHttpInfo(string ac /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateEnvelopeRecipientPreviewAsync(string accountId, string envelopeId, RecipientPreviewRequest recipientPreviewRequest = null) + public async System.Threading.Tasks.Task CreateEnvelopeRecipientPreviewAsync(string accountId, string envelopeId, RecipientPreviewRequest recipientPreviewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEnvelopeRecipientPreviewAsyncWithHttpInfo(accountId, envelopeId, recipientPreviewRequest); return localVarResponse.Data; @@ -8256,7 +8256,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeRecipientPreview /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateEnvelopeRecipientPreviewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientPreviewRequest recipientPreviewRequest = null) + public async System.Threading.Tasks.Task> CreateEnvelopeRecipientPreviewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientPreviewRequest recipientPreviewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8310,7 +8310,7 @@ public async System.Threading.Tasks.Task> CreateEnvelopeRec // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8365,7 +8365,7 @@ public ApiResponse CreateEnvelopeRecipientSharedViewWithHttpInfo(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateEnvelopeRecipientSharedViewAsync(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null) + public async System.Threading.Tasks.Task CreateEnvelopeRecipientSharedViewAsync(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEnvelopeRecipientSharedViewAsyncWithHttpInfo(accountId, envelopeId, recipientViewRequest); return localVarResponse.Data; @@ -8379,7 +8379,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeRecipientSharedV /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateEnvelopeRecipientSharedViewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null) + public async System.Threading.Tasks.Task> CreateEnvelopeRecipientSharedViewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8433,7 +8433,7 @@ public async System.Threading.Tasks.Task> CreateEnvelopeRec // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8485,7 +8485,7 @@ public ApiResponse CreateEnvelopeTransferRulesW /// The external account number (int) or account ID Guid. /// (optional) /// Task of EnvelopeTransferRuleInformation - public async System.Threading.Tasks.Task CreateEnvelopeTransferRulesAsync(string accountId, EnvelopeTransferRuleRequest envelopeTransferRuleRequest = null) + public async System.Threading.Tasks.Task CreateEnvelopeTransferRulesAsync(string accountId, EnvelopeTransferRuleRequest envelopeTransferRuleRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEnvelopeTransferRulesAsyncWithHttpInfo(accountId, envelopeTransferRuleRequest); return localVarResponse.Data; @@ -8498,7 +8498,7 @@ public async System.Threading.Tasks.Task Create /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (EnvelopeTransferRuleInformation) - public async System.Threading.Tasks.Task> CreateEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopeTransferRuleRequest envelopeTransferRuleRequest = null) + public async System.Threading.Tasks.Task> CreateEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopeTransferRuleRequest envelopeTransferRuleRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8548,7 +8548,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeWorkflowStepDefinitionWithHttpInf /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of WorkflowStep - public async System.Threading.Tasks.Task CreateEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task CreateEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStep); return localVarResponse.Data; @@ -8617,7 +8617,7 @@ public async System.Threading.Tasks.Task CreateEnvelopeWorkflowSte /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> CreateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task> CreateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8671,7 +8671,7 @@ public async System.Threading.Tasks.Task> CreateEnvelo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8723,7 +8723,7 @@ public ApiResponse CreateHistoricalEnvelopePublishTr /// The external account number (int) or account ID Guid. /// (optional) /// Task of EnvelopePublishTransaction - public async System.Threading.Tasks.Task CreateHistoricalEnvelopePublishTransactionAsync(string accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish = null) + public async System.Threading.Tasks.Task CreateHistoricalEnvelopePublishTransactionAsync(string accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateHistoricalEnvelopePublishTransactionAsyncWithHttpInfo(accountId, connectHistoricalEnvelopeRepublish); return localVarResponse.Data; @@ -8736,7 +8736,7 @@ public async System.Threading.Tasks.Task CreateHisto /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (EnvelopePublishTransaction) - public async System.Threading.Tasks.Task> CreateHistoricalEnvelopePublishTransactionAsyncWithHttpInfo(string accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish = null) + public async System.Threading.Tasks.Task> CreateHistoricalEnvelopePublishTransactionAsyncWithHttpInfo(string accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8786,7 +8786,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8841,7 +8841,7 @@ public ApiResponse CreateLockWithHttpInfo(string accountId, str /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of LockInformation - public async System.Threading.Tasks.Task CreateLockAsync(string accountId, string envelopeId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task CreateLockAsync(string accountId, string envelopeId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateLockAsyncWithHttpInfo(accountId, envelopeId, lockRequest); return localVarResponse.Data; @@ -8855,7 +8855,7 @@ public async System.Threading.Tasks.Task CreateLockAsync(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> CreateLockAsyncWithHttpInfo(string accountId, string envelopeId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task> CreateLockAsyncWithHttpInfo(string accountId, string envelopeId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8909,7 +8909,7 @@ public async System.Threading.Tasks.Task> CreateLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8975,9 +8975,9 @@ public ApiResponse CreateRecipientWithHttpInfo(string accountId, str /// (optional) /// Options for modifying the behavior of the function. /// Task of Recipients - public async System.Threading.Tasks.Task CreateRecipientAsync(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.CreateRecipientOptions options = null) + public async System.Threading.Tasks.Task CreateRecipientAsync(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.CreateRecipientOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateRecipientAsyncWithHttpInfo(accountId, envelopeId, recipients, options); + ApiResponse localVarResponse = await CreateRecipientAsyncWithHttpInfo(accountId, envelopeId, recipients, options, cancellationToken); return localVarResponse.Data; } @@ -8990,7 +8990,7 @@ public async System.Threading.Tasks.Task CreateRecipientAsync(string /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> CreateRecipientAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.CreateRecipientOptions options = null) + public async System.Threading.Tasks.Task> CreateRecipientAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.CreateRecipientOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9048,7 +9048,7 @@ public async System.Threading.Tasks.Task> CreateRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9103,7 +9103,7 @@ public ApiResponse CreateRecipientManualReviewViewWithHttpInfo(string a /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateRecipientManualReviewViewAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task CreateRecipientManualReviewViewAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateRecipientManualReviewViewAsyncWithHttpInfo(accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -9117,7 +9117,7 @@ public async System.Threading.Tasks.Task CreateRecipientManualReviewVie /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateRecipientManualReviewViewAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> CreateRecipientManualReviewViewAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9167,7 +9167,7 @@ public async System.Threading.Tasks.Task> CreateRecipientMa // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9222,7 +9222,7 @@ public ApiResponse CreateRecipientProofFileLinkWithHttpInfo( /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of IdEvidenceViewLink - public async System.Threading.Tasks.Task CreateRecipientProofFileLinkAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task CreateRecipientProofFileLinkAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateRecipientProofFileLinkAsyncWithHttpInfo(accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -9236,7 +9236,7 @@ public async System.Threading.Tasks.Task CreateRecipientProo /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (IdEvidenceViewLink) - public async System.Threading.Tasks.Task> CreateRecipientProofFileLinkAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> CreateRecipientProofFileLinkAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9286,7 +9286,7 @@ public async System.Threading.Tasks.Task> Create // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9344,7 +9344,7 @@ public ApiResponse CreateRecipientProofFileResourceToke /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of IdEvidenceResourceToken - public async System.Threading.Tasks.Task CreateRecipientProofFileResourceTokenAsync(string tokenScopes, string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task CreateRecipientProofFileResourceTokenAsync(string tokenScopes, string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateRecipientProofFileResourceTokenAsyncWithHttpInfo(tokenScopes, accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -9359,7 +9359,7 @@ public async System.Threading.Tasks.Task CreateRecipien /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (IdEvidenceResourceToken) - public async System.Threading.Tasks.Task> CreateRecipientProofFileResourceTokenAsyncWithHttpInfo(string tokenScopes, string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> CreateRecipientProofFileResourceTokenAsyncWithHttpInfo(string tokenScopes, string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'tokenScopes' is set if (tokenScopes == null) @@ -9413,7 +9413,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9468,7 +9468,7 @@ public ApiResponse CreateRecipientViewWithHttpInfo(string accountId, st /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateRecipientViewAsync(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null) + public async System.Threading.Tasks.Task CreateRecipientViewAsync(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateRecipientViewAsyncWithHttpInfo(accountId, envelopeId, recipientViewRequest); return localVarResponse.Data; @@ -9482,7 +9482,7 @@ public async System.Threading.Tasks.Task CreateRecipientViewAsync(strin /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateRecipientViewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null) + public async System.Threading.Tasks.Task> CreateRecipientViewAsyncWithHttpInfo(string accountId, string envelopeId, RecipientViewRequest recipientViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9536,7 +9536,7 @@ public async System.Threading.Tasks.Task> CreateRecipientVi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9591,7 +9591,7 @@ public ApiResponse CreateResponsiveHtmlPreviewWithHttpI /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of DocumentHtmlDefinitions - public async System.Threading.Tasks.Task CreateResponsiveHtmlPreviewAsync(string accountId, string envelopeId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task CreateResponsiveHtmlPreviewAsync(string accountId, string envelopeId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateResponsiveHtmlPreviewAsyncWithHttpInfo(accountId, envelopeId, documentHtmlDefinition); return localVarResponse.Data; @@ -9605,7 +9605,7 @@ public async System.Threading.Tasks.Task CreateResponsi /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (DocumentHtmlDefinitions) - public async System.Threading.Tasks.Task> CreateResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string envelopeId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task> CreateResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string envelopeId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9659,7 +9659,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9714,7 +9714,7 @@ public ApiResponse CreateSenderViewWithHttpInfo(string accountId, strin /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateSenderViewAsync(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task CreateSenderViewAsync(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateSenderViewAsyncWithHttpInfo(accountId, envelopeId, returnUrlRequest); return localVarResponse.Data; @@ -9728,7 +9728,7 @@ public async System.Threading.Tasks.Task CreateSenderViewAsync(string a /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateSenderViewAsyncWithHttpInfo(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task> CreateSenderViewAsyncWithHttpInfo(string accountId, string envelopeId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9782,7 +9782,7 @@ public async System.Threading.Tasks.Task> CreateSenderViewA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9840,7 +9840,7 @@ public ApiResponse CreateTabsWithHttpInfo(string accountId, string envelop /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTabsAsyncWithHttpInfo(accountId, envelopeId, recipientId, tabs); return localVarResponse.Data; @@ -9855,7 +9855,7 @@ public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> CreateTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task> CreateTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9913,7 +9913,7 @@ public async System.Threading.Tasks.Task> CreateTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9968,7 +9968,7 @@ public ApiResponse CreateTemplateWorkflowStepDefinitionWithHttpInf /// The ID of the template being accessed. /// (optional) /// Task of WorkflowStep - public async System.Threading.Tasks.Task CreateTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task CreateTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStep); return localVarResponse.Data; @@ -9982,7 +9982,7 @@ public async System.Threading.Tasks.Task CreateTemplateWorkflowSte /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> CreateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task> CreateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10036,7 +10036,7 @@ public async System.Threading.Tasks.Task> CreateTempla // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10091,7 +10091,7 @@ public ApiResponse DeleteAttachmentsWithHttpInfo(stri /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EnvelopeAttachmentsResult - public async System.Threading.Tasks.Task DeleteAttachmentsAsync(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null) + public async System.Threading.Tasks.Task DeleteAttachmentsAsync(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteAttachmentsAsyncWithHttpInfo(accountId, envelopeId, envelopeAttachmentsRequest); return localVarResponse.Data; @@ -10105,7 +10105,7 @@ public async System.Threading.Tasks.Task DeleteAttach /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EnvelopeAttachmentsResult) - public async System.Threading.Tasks.Task> DeleteAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null) + public async System.Threading.Tasks.Task> DeleteAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10159,7 +10159,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10211,7 +10211,7 @@ public ApiResponse DeleteChunkedUploadWithHttpInfo(string /// The external account number (int) or account ID Guid. /// /// Task of ChunkedUploadResponse - public async System.Threading.Tasks.Task DeleteChunkedUploadAsync(string accountId, string chunkedUploadId) + public async System.Threading.Tasks.Task DeleteChunkedUploadAsync(string accountId, string chunkedUploadId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadId); return localVarResponse.Data; @@ -10224,7 +10224,7 @@ public async System.Threading.Tasks.Task DeleteChunkedUpl /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (ChunkedUploadResponse) - public async System.Threading.Tasks.Task> DeleteChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId) + public async System.Threading.Tasks.Task> DeleteChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10270,7 +10270,7 @@ public async System.Threading.Tasks.Task> Del // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10325,7 +10325,7 @@ public ApiResponse DeleteCustomFieldsWithHttpInfo(string accountId /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteCustomFieldsAsyncWithHttpInfo(accountId, envelopeId, customFields); return localVarResponse.Data; @@ -10339,7 +10339,7 @@ public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(s /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> DeleteCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task> DeleteCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10393,7 +10393,7 @@ public async System.Threading.Tasks.Task> DeleteCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10451,7 +10451,7 @@ public ApiResponse DeleteDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task DeleteDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task DeleteDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteDocumentFieldsAsyncWithHttpInfo(accountId, envelopeId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -10466,7 +10466,7 @@ public async System.Threading.Tasks.Task DeleteDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> DeleteDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> DeleteDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10524,7 +10524,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10581,7 +10581,7 @@ public ApiResponse DeleteDocumentPageWithHttpInfo(string accountId, stri /// The ID of the document being accessed. /// The page number being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountId, string envelopeId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountId, string envelopeId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { await DeleteDocumentPageAsyncWithHttpInfo(accountId, envelopeId, documentId, pageNumber); } @@ -10595,7 +10595,7 @@ public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountI /// The ID of the document being accessed. /// The page number being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteDocumentPageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task> DeleteDocumentPageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10649,7 +10649,7 @@ public async System.Threading.Tasks.Task> DeleteDocumentPage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10708,7 +10708,7 @@ public ApiResponse DeleteDocumentTabsWithHttpInfo(string accountId, string /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task DeleteDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task DeleteDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteDocumentTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, tabs); return localVarResponse.Data; @@ -10723,7 +10723,7 @@ public async System.Threading.Tasks.Task DeleteDocumentTabsAsync(string ac /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> DeleteDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task> DeleteDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10781,7 +10781,7 @@ public async System.Threading.Tasks.Task> DeleteDocumentTabsAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10836,7 +10836,7 @@ public ApiResponse DeleteDocumentsWithHttpInfo(string a /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EnvelopeDocumentsResult - public async System.Threading.Tasks.Task DeleteDocumentsAsync(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task DeleteDocumentsAsync(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteDocumentsAsyncWithHttpInfo(accountId, envelopeId, envelopeDefinition); return localVarResponse.Data; @@ -10850,7 +10850,7 @@ public async System.Threading.Tasks.Task DeleteDocument /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EnvelopeDocumentsResult) - public async System.Threading.Tasks.Task> DeleteDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task> DeleteDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -10904,7 +10904,7 @@ public async System.Threading.Tasks.Task> D // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -10956,7 +10956,7 @@ public ApiResponse DeleteEmailSettingsWithHttpInfo(string account /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of EmailSettings - public async System.Threading.Tasks.Task DeleteEmailSettingsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task DeleteEmailSettingsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteEmailSettingsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -10969,7 +10969,7 @@ public async System.Threading.Tasks.Task DeleteEmailSettingsAsync /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (EmailSettings) - public async System.Threading.Tasks.Task> DeleteEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> DeleteEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11015,7 +11015,7 @@ public async System.Threading.Tasks.Task> DeleteEmail // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11069,7 +11069,7 @@ public ApiResponse DeleteEnvelopeCorrectViewWithHttpInfo(string accountI /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeCorrectViewAsync(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null) + public async System.Threading.Tasks.Task DeleteEnvelopeCorrectViewAsync(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeCorrectViewAsyncWithHttpInfo(accountId, envelopeId, correctViewRequest); } @@ -11082,7 +11082,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeCorrectViewAsync(string a /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeCorrectViewAsyncWithHttpInfo(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null) + public async System.Threading.Tasks.Task> DeleteEnvelopeCorrectViewAsyncWithHttpInfo(string accountId, string envelopeId, CorrectViewRequest correctViewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11136,7 +11136,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeCorr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11191,7 +11191,7 @@ public ApiResponse DeleteEnvelopeDelayedRoutingDefinitionWithHttpInfo(st /// The envelopeId Guid of the envelope being accessed. /// /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task DeleteEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId); } @@ -11204,7 +11204,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeDelayedRoutingDefinitionA /// The envelopeId Guid of the envelope being accessed. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task> DeleteEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11254,7 +11254,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeDela // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11306,7 +11306,7 @@ public ApiResponse DeleteEnvelopeScheduledSendingDefinitionWithHttpInfo( /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task DeleteEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(accountId, envelopeId); } @@ -11318,7 +11318,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeScheduledSendingDefinitio /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> DeleteEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11364,7 +11364,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeSche // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11416,7 +11416,7 @@ public ApiResponse DeleteEnvelopeTransferRulesWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeTransferRulesAsync(string accountId, string envelopeTransferRuleId) + public async System.Threading.Tasks.Task DeleteEnvelopeTransferRulesAsync(string accountId, string envelopeTransferRuleId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeTransferRulesAsyncWithHttpInfo(accountId, envelopeTransferRuleId); } @@ -11428,7 +11428,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeTransferRulesAsync(string /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, string envelopeTransferRuleId) + public async System.Threading.Tasks.Task> DeleteEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, string envelopeTransferRuleId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11474,7 +11474,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeTran // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11526,7 +11526,7 @@ public ApiResponse DeleteEnvelopeWorkflowDefinitionWithHttpInfo(string a /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeWorkflowDefinitionAsyncWithHttpInfo(accountId, envelopeId); } @@ -11538,7 +11538,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowDefinitionAsync(s /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> DeleteEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11584,7 +11584,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeWork // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11639,7 +11639,7 @@ public ApiResponse DeleteEnvelopeWorkflowStepDefinitionWithHttpInfo(stri /// The envelopeId Guid of the envelope being accessed. /// /// Task of void - public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { await DeleteEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId); } @@ -11652,7 +11652,7 @@ public async System.Threading.Tasks.Task DeleteEnvelopeWorkflowStepDefinitionAsy /// The envelopeId Guid of the envelope being accessed. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task> DeleteEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11702,7 +11702,7 @@ public async System.Threading.Tasks.Task> DeleteEnvelopeWork // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11755,7 +11755,7 @@ public ApiResponse DeleteLockWithHttpInfo(string accountId, str /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of LockInformation - public async System.Threading.Tasks.Task DeleteLockAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task DeleteLockAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteLockAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -11768,7 +11768,7 @@ public async System.Threading.Tasks.Task DeleteLockAsync(string /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> DeleteLockAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> DeleteLockAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11814,7 +11814,7 @@ public async System.Threading.Tasks.Task> DeleteLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11869,7 +11869,7 @@ public ApiResponse DeleteRecipientWithHttpInfo(string accountId, str /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of Recipients - public async System.Threading.Tasks.Task DeleteRecipientAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task DeleteRecipientAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteRecipientAsyncWithHttpInfo(accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -11883,7 +11883,7 @@ public async System.Threading.Tasks.Task DeleteRecipientAsync(string /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> DeleteRecipientAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> DeleteRecipientAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -11933,7 +11933,7 @@ public async System.Threading.Tasks.Task> DeleteRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -11988,7 +11988,7 @@ public ApiResponse DeleteRecipientsWithHttpInfo(string accountId, st /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of Recipients - public async System.Threading.Tasks.Task DeleteRecipientsAsync(string accountId, string envelopeId, Recipients recipients = null) + public async System.Threading.Tasks.Task DeleteRecipientsAsync(string accountId, string envelopeId, Recipients recipients = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteRecipientsAsyncWithHttpInfo(accountId, envelopeId, recipients); return localVarResponse.Data; @@ -12002,7 +12002,7 @@ public async System.Threading.Tasks.Task DeleteRecipientsAsync(strin /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> DeleteRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null) + public async System.Threading.Tasks.Task> DeleteRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12056,7 +12056,7 @@ public async System.Threading.Tasks.Task> DeleteRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12114,7 +12114,7 @@ public ApiResponse DeleteTabsWithHttpInfo(string accountId, string envelop /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteTabsAsyncWithHttpInfo(accountId, envelopeId, recipientId, tabs); return localVarResponse.Data; @@ -12129,7 +12129,7 @@ public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> DeleteTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task> DeleteTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12187,7 +12187,7 @@ public async System.Threading.Tasks.Task> DeleteTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12241,7 +12241,7 @@ public ApiResponse DeleteTemplateDelayedRoutingDefinitionWithHttpInfo(st /// The ID of the template being accessed. /// /// Task of void - public async System.Threading.Tasks.Task DeleteTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task DeleteTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { await DeleteTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId); } @@ -12254,7 +12254,7 @@ public async System.Threading.Tasks.Task DeleteTemplateDelayedRoutingDefinitionA /// The ID of the template being accessed. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task> DeleteTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12304,7 +12304,7 @@ public async System.Threading.Tasks.Task> DeleteTemplateDela // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12356,7 +12356,7 @@ public ApiResponse DeleteTemplateScheduledSendingDefinitionWithHttpInfo( /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteTemplateScheduledSendingDefinitionAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task DeleteTemplateScheduledSendingDefinitionAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { await DeleteTemplateScheduledSendingDefinitionAsyncWithHttpInfo(accountId, templateId); } @@ -12368,7 +12368,7 @@ public async System.Threading.Tasks.Task DeleteTemplateScheduledSendingDefinitio /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> DeleteTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12414,7 +12414,7 @@ public async System.Threading.Tasks.Task> DeleteTemplateSche // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12466,7 +12466,7 @@ public ApiResponse DeleteTemplateWorkflowDefinitionWithHttpInfo(string a /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteTemplateWorkflowDefinitionAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task DeleteTemplateWorkflowDefinitionAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { await DeleteTemplateWorkflowDefinitionAsyncWithHttpInfo(accountId, templateId); } @@ -12478,7 +12478,7 @@ public async System.Threading.Tasks.Task DeleteTemplateWorkflowDefinitionAsync(s /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> DeleteTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12524,7 +12524,7 @@ public async System.Threading.Tasks.Task> DeleteTemplateWork // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12579,7 +12579,7 @@ public ApiResponse DeleteTemplateWorkflowStepDefinitionWithHttpInfo(stri /// The ID of the template being accessed. /// /// Task of void - public async System.Threading.Tasks.Task DeleteTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task DeleteTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { await DeleteTemplateWorkflowStepDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId); } @@ -12592,7 +12592,7 @@ public async System.Threading.Tasks.Task DeleteTemplateWorkflowStepDefinitionAsy /// The ID of the template being accessed. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task> DeleteTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12642,7 +12642,7 @@ public async System.Threading.Tasks.Task> DeleteTemplateWork // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12700,7 +12700,7 @@ public ApiResponse DeleteTemplatesFromDocumentWithHttpInfo(string accoun /// The ID of the document being accessed. /// The ID of the template being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteTemplatesFromDocumentAsync(string accountId, string envelopeId, string documentId, string templateId) + public async System.Threading.Tasks.Task DeleteTemplatesFromDocumentAsync(string accountId, string envelopeId, string documentId, string templateId, System.Threading.CancellationToken cancellationToken = default) { await DeleteTemplatesFromDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, templateId); } @@ -12714,7 +12714,7 @@ public async System.Threading.Tasks.Task DeleteTemplatesFromDocumentAsync(string /// The ID of the document being accessed. /// The ID of the template being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplatesFromDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string templateId) + public async System.Threading.Tasks.Task> DeleteTemplatesFromDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12768,7 +12768,7 @@ public async System.Threading.Tasks.Task> DeleteTemplatesFro // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12823,7 +12823,7 @@ public ApiResponse GetAttachmentWithHttpInfo(string accountId, string en /// The envelopeId Guid of the envelope being accessed. /// /// Task of void - public async System.Threading.Tasks.Task GetAttachmentAsync(string accountId, string envelopeId, string attachmentId) + public async System.Threading.Tasks.Task GetAttachmentAsync(string accountId, string envelopeId, string attachmentId, System.Threading.CancellationToken cancellationToken = default) { await GetAttachmentAsyncWithHttpInfo(accountId, envelopeId, attachmentId); } @@ -12836,7 +12836,7 @@ public async System.Threading.Tasks.Task GetAttachmentAsync(string accountId, st /// The envelopeId Guid of the envelope being accessed. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetAttachmentAsyncWithHttpInfo(string accountId, string envelopeId, string attachmentId) + public async System.Threading.Tasks.Task> GetAttachmentAsyncWithHttpInfo(string accountId, string envelopeId, string attachmentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12886,7 +12886,7 @@ public async System.Threading.Tasks.Task> GetAttachmentAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -12939,7 +12939,7 @@ public ApiResponse GetAttachmentsWithHttpInfo(string /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of EnvelopeAttachmentsResult - public async System.Threading.Tasks.Task GetAttachmentsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetAttachmentsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetAttachmentsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -12952,7 +12952,7 @@ public async System.Threading.Tasks.Task GetAttachmen /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (EnvelopeAttachmentsResult) - public async System.Threading.Tasks.Task> GetAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -12998,7 +12998,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13061,9 +13061,9 @@ public ApiResponse GetChunkedUploadWithHttpInfo(string ac /// /// Options for modifying the behavior of the function. /// Task of ChunkedUploadResponse - public async System.Threading.Tasks.Task GetChunkedUploadAsync(string accountId, string chunkedUploadId, EnvelopesApi.GetChunkedUploadOptions options = null) + public async System.Threading.Tasks.Task GetChunkedUploadAsync(string accountId, string chunkedUploadId, EnvelopesApi.GetChunkedUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadId, options); + ApiResponse localVarResponse = await GetChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadId, options, cancellationToken); return localVarResponse.Data; } @@ -13075,7 +13075,7 @@ public async System.Threading.Tasks.Task GetChunkedUpload /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (ChunkedUploadResponse) - public async System.Threading.Tasks.Task> GetChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId, EnvelopesApi.GetChunkedUploadOptions options = null) + public async System.Threading.Tasks.Task> GetChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId, EnvelopesApi.GetChunkedUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13125,7 +13125,7 @@ public async System.Threading.Tasks.Task> Get // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13188,9 +13188,9 @@ public System.IO.Stream GetCommentsTranscript(string accountId, string envelopeI /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetCommentsTranscriptAsync(string accountId, string envelopeId, EnvelopesApi.GetCommentsTranscriptOptions options = null) + public async System.Threading.Tasks.Task GetCommentsTranscriptAsync(string accountId, string envelopeId, EnvelopesApi.GetCommentsTranscriptOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetCommentsTranscriptAsyncWithHttpInfo(accountId, envelopeId, options); + ApiResponse localVarResponse = await GetCommentsTranscriptAsyncWithHttpInfo(accountId, envelopeId, options, cancellationToken); return localVarResponse.Data; } @@ -13202,7 +13202,7 @@ public System.IO.Stream GetCommentsTranscript(string accountId, string envelopeI /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetCommentsTranscriptAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.GetCommentsTranscriptOptions options = null) + public async System.Threading.Tasks.Task> GetCommentsTranscriptAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.GetCommentsTranscriptOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13252,7 +13252,7 @@ public System.IO.Stream GetCommentsTranscript(string accountId, string envelopeI // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13321,9 +13321,9 @@ public ApiResponse GetConsumerDisclosureWithHttpInfo(string /// The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. /// Options for modifying the behavior of the function. /// Task of ConsumerDisclosure - public async System.Threading.Tasks.Task GetConsumerDisclosureAsync(string accountId, string envelopeId, string recipientId, string langCode, EnvelopesApi.GetConsumerDisclosureOptions options = null) + public async System.Threading.Tasks.Task GetConsumerDisclosureAsync(string accountId, string envelopeId, string recipientId, string langCode, EnvelopesApi.GetConsumerDisclosureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetConsumerDisclosureAsyncWithHttpInfo(accountId, envelopeId, recipientId, langCode, options); + ApiResponse localVarResponse = await GetConsumerDisclosureAsyncWithHttpInfo(accountId, envelopeId, recipientId, langCode, options, cancellationToken); return localVarResponse.Data; } @@ -13337,7 +13337,7 @@ public async System.Threading.Tasks.Task GetConsumerDisclosu /// The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConsumerDisclosure) - public async System.Threading.Tasks.Task> GetConsumerDisclosureAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, string langCode, EnvelopesApi.GetConsumerDisclosureOptions options = null) + public async System.Threading.Tasks.Task> GetConsumerDisclosureAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, string langCode, EnvelopesApi.GetConsumerDisclosureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13395,7 +13395,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13461,9 +13461,9 @@ public ApiResponse GetConsumerDisclosureDefaultWithHttpInfo( /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ConsumerDisclosure - public async System.Threading.Tasks.Task GetConsumerDisclosureDefaultAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetConsumerDisclosureDefaultOptions options = null) + public async System.Threading.Tasks.Task GetConsumerDisclosureDefaultAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetConsumerDisclosureDefaultOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetConsumerDisclosureDefaultAsyncWithHttpInfo(accountId, envelopeId, recipientId, options); + ApiResponse localVarResponse = await GetConsumerDisclosureDefaultAsyncWithHttpInfo(accountId, envelopeId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -13476,7 +13476,7 @@ public async System.Threading.Tasks.Task GetConsumerDisclosu /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ConsumerDisclosure) - public async System.Threading.Tasks.Task> GetConsumerDisclosureDefaultAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetConsumerDisclosureDefaultOptions options = null) + public async System.Threading.Tasks.Task> GetConsumerDisclosureDefaultAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetConsumerDisclosureDefaultOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13530,7 +13530,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13612,9 +13612,9 @@ public System.IO.Stream GetDocument(string accountId, string envelopeId, string /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetDocumentAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentOptions options = null) + public async System.Threading.Tasks.Task GetDocumentAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, options); + ApiResponse localVarResponse = await GetDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -13627,7 +13627,7 @@ public System.IO.Stream GetDocument(string accountId, string envelopeId, string /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13689,7 +13689,7 @@ public System.IO.Stream GetDocument(string accountId, string envelopeId, string // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13764,9 +13764,9 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string envelopeId /// The page number being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetDocumentPageImageAsync(string accountId, string envelopeId, string documentId, string pageNumber, EnvelopesApi.GetDocumentPageImageOptions options = null) + public async System.Threading.Tasks.Task GetDocumentPageImageAsync(string accountId, string envelopeId, string documentId, string pageNumber, EnvelopesApi.GetDocumentPageImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentPageImageAsyncWithHttpInfo(accountId, envelopeId, documentId, pageNumber, options); + ApiResponse localVarResponse = await GetDocumentPageImageAsyncWithHttpInfo(accountId, envelopeId, documentId, pageNumber, options, cancellationToken); return localVarResponse.Data; } @@ -13780,7 +13780,7 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string envelopeId /// The page number being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetDocumentPageImageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, EnvelopesApi.GetDocumentPageImageOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentPageImageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, EnvelopesApi.GetDocumentPageImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13841,7 +13841,7 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string envelopeId // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -13909,9 +13909,9 @@ public ApiResponse GetDocumentTabsWithHttpInfo(string accountId, string en /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of Tabs - public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentTabsOptions options = null) + public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, options); + ApiResponse localVarResponse = await GetDocumentTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -13924,7 +13924,7 @@ public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accou /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> GetDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentTabsOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetDocumentTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -13979,7 +13979,7 @@ public async System.Threading.Tasks.Task> GetDocumentTabsAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14031,7 +14031,7 @@ public ApiResponse GetEmailSettingsWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of EmailSettings - public async System.Threading.Tasks.Task GetEmailSettingsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetEmailSettingsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEmailSettingsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -14044,7 +14044,7 @@ public async System.Threading.Tasks.Task GetEmailSettingsAsync(st /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (EmailSettings) - public async System.Threading.Tasks.Task> GetEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14090,7 +14090,7 @@ public async System.Threading.Tasks.Task> GetEmailSet // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14155,9 +14155,9 @@ public ApiResponse GetEnvelopeWithHttpInfo(string accountId, string en /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of Envelope - public async System.Threading.Tasks.Task GetEnvelopeAsync(string accountId, string envelopeId, EnvelopesApi.GetEnvelopeOptions options = null) + public async System.Threading.Tasks.Task GetEnvelopeAsync(string accountId, string envelopeId, EnvelopesApi.GetEnvelopeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetEnvelopeAsyncWithHttpInfo(accountId, envelopeId, options); + ApiResponse localVarResponse = await GetEnvelopeAsyncWithHttpInfo(accountId, envelopeId, options, cancellationToken); return localVarResponse.Data; } @@ -14169,7 +14169,7 @@ public async System.Threading.Tasks.Task GetEnvelopeAsync(string accou /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Envelope) - public async System.Threading.Tasks.Task> GetEnvelopeAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.GetEnvelopeOptions options = null) + public async System.Threading.Tasks.Task> GetEnvelopeAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.GetEnvelopeOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14220,7 +14220,7 @@ public async System.Threading.Tasks.Task> GetEnvelopeAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14275,7 +14275,7 @@ public ApiResponse GetEnvelopeDelayedRoutingDefinitionWithHttpIn /// The envelopeId Guid of the envelope being accessed. /// /// Task of DelayedRouting - public async System.Threading.Tasks.Task GetEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task GetEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId); return localVarResponse.Data; @@ -14289,7 +14289,7 @@ public async System.Threading.Tasks.Task GetEnvelopeDelayedRouti /// The envelopeId Guid of the envelope being accessed. /// /// Task of ApiResponse (DelayedRouting) - public async System.Threading.Tasks.Task> GetEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task> GetEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14339,7 +14339,7 @@ public async System.Threading.Tasks.Task> GetEnvelop // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14394,7 +14394,7 @@ public ApiResponse GetEnvelopeDocumentHtmlDefin /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of DocumentHtmlDefinitionOriginals - public async System.Threading.Tasks.Task GetEnvelopeDocumentHtmlDefinitionsAsync(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task GetEnvelopeDocumentHtmlDefinitionsAsync(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeDocumentHtmlDefinitionsAsyncWithHttpInfo(accountId, envelopeId, documentId); return localVarResponse.Data; @@ -14408,7 +14408,7 @@ public async System.Threading.Tasks.Task GetEnv /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of ApiResponse (DocumentHtmlDefinitionOriginals) - public async System.Threading.Tasks.Task> GetEnvelopeDocumentHtmlDefinitionsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task> GetEnvelopeDocumentHtmlDefinitionsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14458,7 +14458,7 @@ public async System.Threading.Tasks.Task GetEnvelopeHtmlDefinitionsWi /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of DocumentHtmlDefinitionOriginals - public async System.Threading.Tasks.Task GetEnvelopeHtmlDefinitionsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetEnvelopeHtmlDefinitionsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeHtmlDefinitionsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -14523,7 +14523,7 @@ public async System.Threading.Tasks.Task GetEnv /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (DocumentHtmlDefinitionOriginals) - public async System.Threading.Tasks.Task> GetEnvelopeHtmlDefinitionsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetEnvelopeHtmlDefinitionsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14569,7 +14569,7 @@ public async System.Threading.Tasks.Task GetEnvelopeScheduledSendingDefinitionWithHt /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ScheduledSending - public async System.Threading.Tasks.Task GetEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -14634,7 +14634,7 @@ public async System.Threading.Tasks.Task GetEnvelopeScheduledS /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (ScheduledSending) - public async System.Threading.Tasks.Task> GetEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14680,7 +14680,7 @@ public async System.Threading.Tasks.Task> GetEnvel // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14742,9 +14742,9 @@ public ApiResponse GetEnvelopeTransferRulesWith /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of EnvelopeTransferRuleInformation - public async System.Threading.Tasks.Task GetEnvelopeTransferRulesAsync(string accountId, EnvelopesApi.GetEnvelopeTransferRulesOptions options = null) + public async System.Threading.Tasks.Task GetEnvelopeTransferRulesAsync(string accountId, EnvelopesApi.GetEnvelopeTransferRulesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetEnvelopeTransferRulesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await GetEnvelopeTransferRulesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -14755,7 +14755,7 @@ public async System.Threading.Tasks.Task GetEnv /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeTransferRuleInformation) - public async System.Threading.Tasks.Task> GetEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopesApi.GetEnvelopeTransferRulesOptions options = null) + public async System.Threading.Tasks.Task> GetEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopesApi.GetEnvelopeTransferRulesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14802,7 +14802,7 @@ public async System.Threading.Tasks.Task GetEnvelopeWorkflowDefinitionWithHttpInfo(string ac /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of Workflow - public async System.Threading.Tasks.Task GetEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeWorkflowDefinitionAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -14867,7 +14867,7 @@ public async System.Threading.Tasks.Task GetEnvelopeWorkflowDefinition /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (Workflow) - public async System.Threading.Tasks.Task> GetEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -14913,7 +14913,7 @@ public async System.Threading.Tasks.Task> GetEnvelopeWorkf // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -14968,7 +14968,7 @@ public ApiResponse GetEnvelopeWorkflowStepDefinitionWithHttpInfo(s /// The envelopeId Guid of the envelope being accessed. /// /// Task of WorkflowStep - public async System.Threading.Tasks.Task GetEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task GetEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId); return localVarResponse.Data; @@ -14982,7 +14982,7 @@ public async System.Threading.Tasks.Task GetEnvelopeWorkflowStepDe /// The envelopeId Guid of the envelope being accessed. /// /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> GetEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId) + public async System.Threading.Tasks.Task> GetEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15032,7 +15032,7 @@ public async System.Threading.Tasks.Task> GetEnvelopeW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15084,7 +15084,7 @@ public ApiResponse GetFormDataWithHttpInfo(string accountId, s /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of EnvelopeFormData - public async System.Threading.Tasks.Task GetFormDataAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetFormDataAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetFormDataAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -15097,7 +15097,7 @@ public async System.Threading.Tasks.Task GetFormDataAsync(stri /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (EnvelopeFormData) - public async System.Threading.Tasks.Task> GetFormDataAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetFormDataAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15143,7 +15143,7 @@ public async System.Threading.Tasks.Task> GetFormD // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15195,7 +15195,7 @@ public ApiResponse GetLockWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of LockInformation - public async System.Threading.Tasks.Task GetLockAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetLockAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetLockAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -15208,7 +15208,7 @@ public async System.Threading.Tasks.Task GetLockAsync(string ac /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> GetLockAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetLockAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15254,7 +15254,7 @@ public async System.Threading.Tasks.Task> GetLockAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15306,7 +15306,7 @@ public ApiResponse GetNotificationSettingsWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of Notification - public async System.Threading.Tasks.Task GetNotificationSettingsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetNotificationSettingsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetNotificationSettingsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -15319,7 +15319,7 @@ public async System.Threading.Tasks.Task GetNotificationSettingsAs /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> GetNotificationSettingsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetNotificationSettingsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15365,7 +15365,7 @@ public async System.Threading.Tasks.Task> GetNotificat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15423,7 +15423,7 @@ public ApiResponse GetPageTabsWithHttpInfo(string accountId, string envelo /// The ID of the document being accessed. /// The page number being accessed. /// Task of Tabs - public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId, string envelopeId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId, string envelopeId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPageTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, pageNumber); return localVarResponse.Data; @@ -15438,7 +15438,7 @@ public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId /// The ID of the document being accessed. /// The page number being accessed. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> GetPageTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task> GetPageTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15492,7 +15492,7 @@ public async System.Threading.Tasks.Task> GetPageTabsAsyncWith // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15570,9 +15570,9 @@ public ApiResponse GetPagesWithHttpInfo(string accountId, string env /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of PageImages - public async System.Threading.Tasks.Task GetPagesAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetPagesOptions options = null) + public async System.Threading.Tasks.Task GetPagesAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.GetPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetPagesAsyncWithHttpInfo(accountId, envelopeId, documentId, options); + ApiResponse localVarResponse = await GetPagesAsyncWithHttpInfo(accountId, envelopeId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -15585,7 +15585,7 @@ public async System.Threading.Tasks.Task GetPagesAsync(string accoun /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PageImages) - public async System.Threading.Tasks.Task> GetPagesAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetPagesOptions options = null) + public async System.Threading.Tasks.Task> GetPagesAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.GetPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15645,7 +15645,7 @@ public async System.Threading.Tasks.Task> GetPagesAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15700,7 +15700,7 @@ public ApiResponse GetRecipientDocumentVisibilityWithHtt /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of DocumentVisibilityList - public async System.Threading.Tasks.Task GetRecipientDocumentVisibilityAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task GetRecipientDocumentVisibilityAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetRecipientDocumentVisibilityAsyncWithHttpInfo(accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -15714,7 +15714,7 @@ public async System.Threading.Tasks.Task GetRecipientDoc /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (DocumentVisibilityList) - public async System.Threading.Tasks.Task> GetRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> GetRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15764,7 +15764,7 @@ public async System.Threading.Tasks.Task> Ge // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15830,9 +15830,9 @@ public System.IO.Stream GetRecipientInitialsImage(string accountId, string envel /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetRecipientInitialsImageAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientInitialsImageOptions options = null) + public async System.Threading.Tasks.Task GetRecipientInitialsImageAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientInitialsImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetRecipientInitialsImageAsyncWithHttpInfo(accountId, envelopeId, recipientId, options); + ApiResponse localVarResponse = await GetRecipientInitialsImageAsyncWithHttpInfo(accountId, envelopeId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -15845,7 +15845,7 @@ public System.IO.Stream GetRecipientInitialsImage(string accountId, string envel /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetRecipientInitialsImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientInitialsImageOptions options = null) + public async System.Threading.Tasks.Task> GetRecipientInitialsImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientInitialsImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -15899,7 +15899,7 @@ public System.IO.Stream GetRecipientInitialsImage(string accountId, string envel // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -15954,7 +15954,7 @@ public ApiResponse GetRecipientSignatureWithHttpInfo(string accou /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of UserSignature - public async System.Threading.Tasks.Task GetRecipientSignatureAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task GetRecipientSignatureAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetRecipientSignatureAsyncWithHttpInfo(accountId, envelopeId, recipientId); return localVarResponse.Data; @@ -15968,7 +15968,7 @@ public async System.Threading.Tasks.Task GetRecipientSignatureAsy /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (UserSignature) - public async System.Threading.Tasks.Task> GetRecipientSignatureAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> GetRecipientSignatureAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16018,7 +16018,7 @@ public async System.Threading.Tasks.Task> GetRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16084,9 +16084,9 @@ public System.IO.Stream GetRecipientSignatureImage(string accountId, string enve /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetRecipientSignatureImageAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientSignatureImageOptions options = null) + public async System.Threading.Tasks.Task GetRecipientSignatureImageAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetRecipientSignatureImageAsyncWithHttpInfo(accountId, envelopeId, recipientId, options); + ApiResponse localVarResponse = await GetRecipientSignatureImageAsyncWithHttpInfo(accountId, envelopeId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -16099,7 +16099,7 @@ public System.IO.Stream GetRecipientSignatureImage(string accountId, string enve /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetRecipientSignatureImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientSignatureImageOptions options = null) + public async System.Threading.Tasks.Task> GetRecipientSignatureImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.GetRecipientSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16153,7 +16153,7 @@ public System.IO.Stream GetRecipientSignatureImage(string accountId, string enve // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16204,7 +16204,7 @@ public ApiResponse GetTabsBlobWithHttpInfo(string accountId, string enve /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of void - public async System.Threading.Tasks.Task GetTabsBlobAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task GetTabsBlobAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { await GetTabsBlobAsyncWithHttpInfo(accountId, envelopeId); } @@ -16216,7 +16216,7 @@ public async System.Threading.Tasks.Task GetTabsBlobAsync(string accountId, stri /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetTabsBlobAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> GetTabsBlobAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16262,7 +16262,7 @@ public async System.Threading.Tasks.Task> GetTabsBlobAsyncWi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16318,7 +16318,7 @@ public ApiResponse GetTemplateDelayedRoutingDefinitionWithHttpIn /// The ID of the template being accessed. /// /// Task of DelayedRouting - public async System.Threading.Tasks.Task GetTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task GetTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId); return localVarResponse.Data; @@ -16332,7 +16332,7 @@ public async System.Threading.Tasks.Task GetTemplateDelayedRouti /// The ID of the template being accessed. /// /// Task of ApiResponse (DelayedRouting) - public async System.Threading.Tasks.Task> GetTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task> GetTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16382,7 +16382,7 @@ public async System.Threading.Tasks.Task> GetTemplat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16437,7 +16437,7 @@ public ApiResponse GetTemplateRecipientDocumentVisibilit /// The ID of the template being accessed. /// The ID of the recipient being accessed. /// Task of DocumentVisibilityList - public async System.Threading.Tasks.Task GetTemplateRecipientDocumentVisibilityAsync(string accountId, string templateId, string recipientId) + public async System.Threading.Tasks.Task GetTemplateRecipientDocumentVisibilityAsync(string accountId, string templateId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(accountId, templateId, recipientId); return localVarResponse.Data; @@ -16451,7 +16451,7 @@ public async System.Threading.Tasks.Task GetTemplateReci /// The ID of the template being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (DocumentVisibilityList) - public async System.Threading.Tasks.Task> GetTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, string recipientId) + public async System.Threading.Tasks.Task> GetTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16501,7 +16501,7 @@ public async System.Threading.Tasks.Task> Ge // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16553,7 +16553,7 @@ public ApiResponse GetTemplateScheduledSendingDefinitionWithHt /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ScheduledSending - public async System.Threading.Tasks.Task GetTemplateScheduledSendingDefinitionAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task GetTemplateScheduledSendingDefinitionAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateScheduledSendingDefinitionAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -16566,7 +16566,7 @@ public async System.Threading.Tasks.Task GetTemplateScheduledS /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (ScheduledSending) - public async System.Threading.Tasks.Task> GetTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> GetTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16612,7 +16612,7 @@ public async System.Threading.Tasks.Task> GetTempl // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16664,7 +16664,7 @@ public ApiResponse GetTemplateWorkflowDefinitionWithHttpInfo(string ac /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of Workflow - public async System.Threading.Tasks.Task GetTemplateWorkflowDefinitionAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task GetTemplateWorkflowDefinitionAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateWorkflowDefinitionAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -16677,7 +16677,7 @@ public async System.Threading.Tasks.Task GetTemplateWorkflowDefinition /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (Workflow) - public async System.Threading.Tasks.Task> GetTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> GetTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16723,7 +16723,7 @@ public async System.Threading.Tasks.Task> GetTemplateWorkf // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16778,7 +16778,7 @@ public ApiResponse GetTemplateWorkflowStepDefinitionWithHttpInfo(s /// The ID of the template being accessed. /// /// Task of WorkflowStep - public async System.Threading.Tasks.Task GetTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task GetTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateWorkflowStepDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId); return localVarResponse.Data; @@ -16792,7 +16792,7 @@ public async System.Threading.Tasks.Task GetTemplateWorkflowStepDe /// The ID of the template being accessed. /// /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> GetTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId) + public async System.Threading.Tasks.Task> GetTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16842,7 +16842,7 @@ public async System.Threading.Tasks.Task> GetTemplateW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -16894,7 +16894,7 @@ public ApiResponse ListAuditEventsWithHttpInfo(strin /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of EnvelopeAuditEventResponse - public async System.Threading.Tasks.Task ListAuditEventsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task ListAuditEventsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListAuditEventsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -16907,7 +16907,7 @@ public async System.Threading.Tasks.Task ListAuditEv /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (EnvelopeAuditEventResponse) - public async System.Threading.Tasks.Task> ListAuditEventsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> ListAuditEventsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -16953,7 +16953,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17005,7 +17005,7 @@ public ApiResponse ListCustomFieldsWithHttpInfo(string acc /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of CustomFieldsEnvelope - public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListCustomFieldsAsyncWithHttpInfo(accountId, envelopeId); return localVarResponse.Data; @@ -17018,7 +17018,7 @@ public async System.Threading.Tasks.Task ListCustomFieldsA /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse (CustomFieldsEnvelope) - public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17064,7 +17064,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17119,7 +17119,7 @@ public ApiResponse ListDocumentFieldsWithHttpInfo(str /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task ListDocumentFieldsAsync(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task ListDocumentFieldsAsync(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListDocumentFieldsAsyncWithHttpInfo(accountId, envelopeId, documentId); return localVarResponse.Data; @@ -17133,7 +17133,7 @@ public async System.Threading.Tasks.Task ListDocument /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> ListDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task> ListDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17183,7 +17183,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17258,9 +17258,9 @@ public ApiResponse ListDocumentsWithHttpInfo(string acc /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of EnvelopeDocumentsResult - public async System.Threading.Tasks.Task ListDocumentsAsync(string accountId, string envelopeId, EnvelopesApi.ListDocumentsOptions options = null) + public async System.Threading.Tasks.Task ListDocumentsAsync(string accountId, string envelopeId, EnvelopesApi.ListDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListDocumentsAsyncWithHttpInfo(accountId, envelopeId, options); + ApiResponse localVarResponse = await ListDocumentsAsyncWithHttpInfo(accountId, envelopeId, options, cancellationToken); return localVarResponse.Data; } @@ -17272,7 +17272,7 @@ public async System.Threading.Tasks.Task ListDocumentsA /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeDocumentsResult) - public async System.Threading.Tasks.Task> ListDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListDocumentsOptions options = null) + public async System.Threading.Tasks.Task> ListDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17328,7 +17328,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17397,9 +17397,9 @@ public ApiResponse ListRecipientsWithHttpInfo(string accountId, stri /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of Recipients - public async System.Threading.Tasks.Task ListRecipientsAsync(string accountId, string envelopeId, EnvelopesApi.ListRecipientsOptions options = null) + public async System.Threading.Tasks.Task ListRecipientsAsync(string accountId, string envelopeId, EnvelopesApi.ListRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListRecipientsAsyncWithHttpInfo(accountId, envelopeId, options); + ApiResponse localVarResponse = await ListRecipientsAsyncWithHttpInfo(accountId, envelopeId, options, cancellationToken); return localVarResponse.Data; } @@ -17411,7 +17411,7 @@ public async System.Threading.Tasks.Task ListRecipientsAsync(string /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> ListRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListRecipientsOptions options = null) + public async System.Threading.Tasks.Task> ListRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17464,7 +17464,7 @@ public async System.Threading.Tasks.Task> ListRecipients // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17549,9 +17549,9 @@ public ApiResponse ListStatusWithHttpInfo(string accountId /// (optional) /// Options for modifying the behavior of the function. /// Task of EnvelopesInformation - public async System.Threading.Tasks.Task ListStatusAsync(string accountId, EnvelopeIdsRequest envelopeIdsRequest = null, EnvelopesApi.ListStatusOptions options = null) + public async System.Threading.Tasks.Task ListStatusAsync(string accountId, EnvelopeIdsRequest envelopeIdsRequest = null, EnvelopesApi.ListStatusOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListStatusAsyncWithHttpInfo(accountId, envelopeIdsRequest, options); + ApiResponse localVarResponse = await ListStatusAsyncWithHttpInfo(accountId, envelopeIdsRequest, options, cancellationToken); return localVarResponse.Data; } @@ -17563,7 +17563,7 @@ public async System.Threading.Tasks.Task ListStatusAsync(s /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopesInformation) - public async System.Threading.Tasks.Task> ListStatusAsyncWithHttpInfo(string accountId, EnvelopeIdsRequest envelopeIdsRequest = null, EnvelopesApi.ListStatusOptions options = null) + public async System.Threading.Tasks.Task> ListStatusAsyncWithHttpInfo(string accountId, EnvelopeIdsRequest envelopeIdsRequest = null, EnvelopesApi.ListStatusOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17628,7 +17628,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17746,9 +17746,9 @@ public ApiResponse ListStatusChangesWithHttpInfo(string ac /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of EnvelopesInformation - public async System.Threading.Tasks.Task ListStatusChangesAsync(string accountId, EnvelopesApi.ListStatusChangesOptions options = null) + public async System.Threading.Tasks.Task ListStatusChangesAsync(string accountId, EnvelopesApi.ListStatusChangesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListStatusChangesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListStatusChangesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -17759,7 +17759,7 @@ public async System.Threading.Tasks.Task ListStatusChanges /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopesInformation) - public async System.Threading.Tasks.Task> ListStatusChangesAsyncWithHttpInfo(string accountId, EnvelopesApi.ListStatusChangesOptions options = null) + public async System.Threading.Tasks.Task> ListStatusChangesAsyncWithHttpInfo(string accountId, EnvelopesApi.ListStatusChangesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17834,7 +17834,7 @@ public async System.Threading.Tasks.Task> List // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -17902,9 +17902,9 @@ public ApiResponse ListTabsWithHttpInfo(string accountId, string envelopeI /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of Tabs - public async System.Threading.Tasks.Task ListTabsAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.ListTabsOptions options = null) + public async System.Threading.Tasks.Task ListTabsAsync(string accountId, string envelopeId, string recipientId, EnvelopesApi.ListTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListTabsAsyncWithHttpInfo(accountId, envelopeId, recipientId, options); + ApiResponse localVarResponse = await ListTabsAsyncWithHttpInfo(accountId, envelopeId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -17917,7 +17917,7 @@ public async System.Threading.Tasks.Task ListTabsAsync(string accountId, s /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> ListTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.ListTabsOptions options = null) + public async System.Threading.Tasks.Task> ListTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, EnvelopesApi.ListTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -17972,7 +17972,7 @@ public async System.Threading.Tasks.Task> ListTabsAsyncWithHtt // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18035,9 +18035,9 @@ public ApiResponse ListTemplatesWithHttpInfo(string account /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of TemplateInformation - public async System.Threading.Tasks.Task ListTemplatesAsync(string accountId, string envelopeId, EnvelopesApi.ListTemplatesOptions options = null) + public async System.Threading.Tasks.Task ListTemplatesAsync(string accountId, string envelopeId, EnvelopesApi.ListTemplatesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListTemplatesAsyncWithHttpInfo(accountId, envelopeId, options); + ApiResponse localVarResponse = await ListTemplatesAsyncWithHttpInfo(accountId, envelopeId, options, cancellationToken); return localVarResponse.Data; } @@ -18049,7 +18049,7 @@ public async System.Threading.Tasks.Task ListTemplatesAsync /// The envelopeId Guid of the envelope being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (TemplateInformation) - public async System.Threading.Tasks.Task> ListTemplatesAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListTemplatesOptions options = null) + public async System.Threading.Tasks.Task> ListTemplatesAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesApi.ListTemplatesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18099,7 +18099,7 @@ public async System.Threading.Tasks.Task> ListT // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18165,9 +18165,9 @@ public ApiResponse ListTemplatesForDocumentWithHttpInfo(str /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of TemplateInformation - public async System.Threading.Tasks.Task ListTemplatesForDocumentAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.ListTemplatesForDocumentOptions options = null) + public async System.Threading.Tasks.Task ListTemplatesForDocumentAsync(string accountId, string envelopeId, string documentId, EnvelopesApi.ListTemplatesForDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListTemplatesForDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, options); + ApiResponse localVarResponse = await ListTemplatesForDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -18180,7 +18180,7 @@ public async System.Threading.Tasks.Task ListTemplatesForDo /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (TemplateInformation) - public async System.Threading.Tasks.Task> ListTemplatesForDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.ListTemplatesForDocumentOptions options = null) + public async System.Threading.Tasks.Task> ListTemplatesForDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, EnvelopesApi.ListTemplatesForDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18234,7 +18234,7 @@ public async System.Threading.Tasks.Task> ListT // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18292,7 +18292,7 @@ public ApiResponse PutAttachmentWithHttpInfo(string a /// /// (optional) /// Task of EnvelopeAttachmentsResult - public async System.Threading.Tasks.Task PutAttachmentAsync(string accountId, string envelopeId, string attachmentId, Attachment attachment = null) + public async System.Threading.Tasks.Task PutAttachmentAsync(string accountId, string envelopeId, string attachmentId, Attachment attachment = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await PutAttachmentAsyncWithHttpInfo(accountId, envelopeId, attachmentId, attachment); return localVarResponse.Data; @@ -18307,7 +18307,7 @@ public async System.Threading.Tasks.Task PutAttachmen /// /// (optional) /// Task of ApiResponse (EnvelopeAttachmentsResult) - public async System.Threading.Tasks.Task> PutAttachmentAsyncWithHttpInfo(string accountId, string envelopeId, string attachmentId, Attachment attachment = null) + public async System.Threading.Tasks.Task> PutAttachmentAsyncWithHttpInfo(string accountId, string envelopeId, string attachmentId, Attachment attachment = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18365,7 +18365,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18420,7 +18420,7 @@ public ApiResponse PutAttachmentsWithHttpInfo(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EnvelopeAttachmentsResult - public async System.Threading.Tasks.Task PutAttachmentsAsync(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null) + public async System.Threading.Tasks.Task PutAttachmentsAsync(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await PutAttachmentsAsyncWithHttpInfo(accountId, envelopeId, envelopeAttachmentsRequest); return localVarResponse.Data; @@ -18434,7 +18434,7 @@ public async System.Threading.Tasks.Task PutAttachmen /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EnvelopeAttachmentsResult) - public async System.Threading.Tasks.Task> PutAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null) + public async System.Threading.Tasks.Task> PutAttachmentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeAttachmentsRequest envelopeAttachmentsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18488,7 +18488,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18548,7 +18548,7 @@ public ApiResponse RotateDocumentPageWithHttpInfo(string accountId, stri /// The page number being accessed. /// (optional) /// Task of void - public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountId, string envelopeId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountId, string envelopeId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { await RotateDocumentPageAsyncWithHttpInfo(accountId, envelopeId, documentId, pageNumber, pageRequest); } @@ -18563,7 +18563,7 @@ public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountI /// The page number being accessed. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> RotateDocumentPageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task> RotateDocumentPageAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18625,7 +18625,7 @@ public async System.Threading.Tasks.Task> RotateDocumentPage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18694,9 +18694,9 @@ public ApiResponse UpdateWithHttpInfo(string accountId, s /// (optional) /// Options for modifying the behavior of the function. /// Task of EnvelopeUpdateSummary - public async System.Threading.Tasks.Task UpdateAsync(string accountId, string envelopeId, Envelope envelope = null, EnvelopesApi.UpdateOptions options = null) + public async System.Threading.Tasks.Task UpdateAsync(string accountId, string envelopeId, Envelope envelope = null, EnvelopesApi.UpdateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateAsyncWithHttpInfo(accountId, envelopeId, envelope, options); + ApiResponse localVarResponse = await UpdateAsyncWithHttpInfo(accountId, envelopeId, envelope, options, cancellationToken); return localVarResponse.Data; } @@ -18709,7 +18709,7 @@ public async System.Threading.Tasks.Task UpdateAsync(stri /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeUpdateSummary) - public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string envelopeId, Envelope envelope = null, EnvelopesApi.UpdateOptions options = null) + public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string envelopeId, Envelope envelope = null, EnvelopesApi.UpdateOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18768,7 +18768,7 @@ public async System.Threading.Tasks.Task> Upd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18831,9 +18831,9 @@ public ApiResponse UpdateChunkedUploadWithHttpInfo(string /// /// Options for modifying the behavior of the function. /// Task of ChunkedUploadResponse - public async System.Threading.Tasks.Task UpdateChunkedUploadAsync(string accountId, string chunkedUploadId, EnvelopesApi.UpdateChunkedUploadOptions options = null) + public async System.Threading.Tasks.Task UpdateChunkedUploadAsync(string accountId, string chunkedUploadId, EnvelopesApi.UpdateChunkedUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadId, options); + ApiResponse localVarResponse = await UpdateChunkedUploadAsyncWithHttpInfo(accountId, chunkedUploadId, options, cancellationToken); return localVarResponse.Data; } @@ -18845,7 +18845,7 @@ public async System.Threading.Tasks.Task UpdateChunkedUpl /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (ChunkedUploadResponse) - public async System.Threading.Tasks.Task> UpdateChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId, EnvelopesApi.UpdateChunkedUploadOptions options = null) + public async System.Threading.Tasks.Task> UpdateChunkedUploadAsyncWithHttpInfo(string accountId, string chunkedUploadId, EnvelopesApi.UpdateChunkedUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -18895,7 +18895,7 @@ public async System.Threading.Tasks.Task> Upd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -18953,7 +18953,7 @@ public ApiResponse UpdateChunkedUploadPartWithHttpInfo(st /// /// (optional) /// Task of ChunkedUploadResponse - public async System.Threading.Tasks.Task UpdateChunkedUploadPartAsync(string accountId, string chunkedUploadId, string chunkedUploadPartSeq, ChunkedUploadRequest chunkedUploadRequest = null) + public async System.Threading.Tasks.Task UpdateChunkedUploadPartAsync(string accountId, string chunkedUploadId, string chunkedUploadPartSeq, ChunkedUploadRequest chunkedUploadRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateChunkedUploadPartAsyncWithHttpInfo(accountId, chunkedUploadId, chunkedUploadPartSeq, chunkedUploadRequest); return localVarResponse.Data; @@ -18968,7 +18968,7 @@ public async System.Threading.Tasks.Task UpdateChunkedUpl /// /// (optional) /// Task of ApiResponse (ChunkedUploadResponse) - public async System.Threading.Tasks.Task> UpdateChunkedUploadPartAsyncWithHttpInfo(string accountId, string chunkedUploadId, string chunkedUploadPartSeq, ChunkedUploadRequest chunkedUploadRequest = null) + public async System.Threading.Tasks.Task> UpdateChunkedUploadPartAsyncWithHttpInfo(string accountId, string chunkedUploadId, string chunkedUploadPartSeq, ChunkedUploadRequest chunkedUploadRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19026,7 +19026,7 @@ public async System.Threading.Tasks.Task> Upd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19081,7 +19081,7 @@ public ApiResponse UpdateCustomFieldsWithHttpInfo(string accountId /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateCustomFieldsAsyncWithHttpInfo(accountId, envelopeId, customFields); return localVarResponse.Data; @@ -19095,7 +19095,7 @@ public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(s /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> UpdateCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null) + public async System.Threading.Tasks.Task> UpdateCustomFieldsAsyncWithHttpInfo(string accountId, string envelopeId, CustomFields customFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19149,7 +19149,7 @@ public async System.Threading.Tasks.Task> UpdateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19204,7 +19204,7 @@ public ApiResponse UpdateDocumentWithHttpInfo(string accountId /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of EnvelopeDocument - public async System.Threading.Tasks.Task UpdateDocumentAsync(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task UpdateDocumentAsync(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentAsyncWithHttpInfo(accountId, envelopeId, documentId); return localVarResponse.Data; @@ -19218,7 +19218,7 @@ public async System.Threading.Tasks.Task UpdateDocumentAsync(s /// The envelopeId Guid of the envelope being accessed. /// The ID of the document being accessed. /// Task of ApiResponse (EnvelopeDocument) - public async System.Threading.Tasks.Task> UpdateDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId) + public async System.Threading.Tasks.Task> UpdateDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19268,7 +19268,7 @@ public async System.Threading.Tasks.Task> UpdateDo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19326,7 +19326,7 @@ public ApiResponse UpdateDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task UpdateDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task UpdateDocumentFieldsAsync(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentFieldsAsyncWithHttpInfo(accountId, envelopeId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -19341,7 +19341,7 @@ public async System.Threading.Tasks.Task UpdateDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> UpdateDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> UpdateDocumentFieldsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19399,7 +19399,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19457,7 +19457,7 @@ public ApiResponse UpdateDocumentTabsWithHttpInfo(string accountId, string /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task UpdateDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task UpdateDocumentTabsAsync(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentTabsAsyncWithHttpInfo(accountId, envelopeId, documentId, tabs); return localVarResponse.Data; @@ -19472,7 +19472,7 @@ public async System.Threading.Tasks.Task UpdateDocumentTabsAsync(string ac /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> UpdateDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null) + public async System.Threading.Tasks.Task> UpdateDocumentTabsAsyncWithHttpInfo(string accountId, string envelopeId, string documentId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19530,7 +19530,7 @@ public async System.Threading.Tasks.Task> UpdateDocumentTabsAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19585,7 +19585,7 @@ public ApiResponse UpdateDocumentsWithHttpInfo(string a /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EnvelopeDocumentsResult - public async System.Threading.Tasks.Task UpdateDocumentsAsync(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task UpdateDocumentsAsync(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentsAsyncWithHttpInfo(accountId, envelopeId, envelopeDefinition); return localVarResponse.Data; @@ -19599,7 +19599,7 @@ public async System.Threading.Tasks.Task UpdateDocument /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EnvelopeDocumentsResult) - public async System.Threading.Tasks.Task> UpdateDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task> UpdateDocumentsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19653,7 +19653,7 @@ public async System.Threading.Tasks.Task> U // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19708,7 +19708,7 @@ public ApiResponse UpdateEmailSettingsWithHttpInfo(string account /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of EmailSettings - public async System.Threading.Tasks.Task UpdateEmailSettingsAsync(string accountId, string envelopeId, EmailSettings emailSettings = null) + public async System.Threading.Tasks.Task UpdateEmailSettingsAsync(string accountId, string envelopeId, EmailSettings emailSettings = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEmailSettingsAsyncWithHttpInfo(accountId, envelopeId, emailSettings); return localVarResponse.Data; @@ -19722,7 +19722,7 @@ public async System.Threading.Tasks.Task UpdateEmailSettingsAsync /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (EmailSettings) - public async System.Threading.Tasks.Task> UpdateEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EmailSettings emailSettings = null) + public async System.Threading.Tasks.Task> UpdateEmailSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EmailSettings emailSettings = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19776,7 +19776,7 @@ public async System.Threading.Tasks.Task> UpdateEmail // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19834,7 +19834,7 @@ public ApiResponse UpdateEnvelopeDelayedRoutingDefinitionWithHtt /// /// (optional) /// Task of DelayedRouting - public async System.Threading.Tasks.Task UpdateEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId, DelayedRouting delayedRouting = null) + public async System.Threading.Tasks.Task UpdateEnvelopeDelayedRoutingDefinitionAsync(string accountId, string envelopeId, string workflowStepId, DelayedRouting delayedRouting = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId, delayedRouting); return localVarResponse.Data; @@ -19849,7 +19849,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeDelayedRo /// /// (optional) /// Task of ApiResponse (DelayedRouting) - public async System.Threading.Tasks.Task> UpdateEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, DelayedRouting delayedRouting = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, DelayedRouting delayedRouting = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -19907,7 +19907,7 @@ public async System.Threading.Tasks.Task> UpdateEnve // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -19962,7 +19962,7 @@ public ApiResponse UpdateEnvelopeScheduledSendingDefinitionWit /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ScheduledSending - public async System.Threading.Tasks.Task UpdateEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId, ScheduledSending scheduledSending = null) + public async System.Threading.Tasks.Task UpdateEnvelopeScheduledSendingDefinitionAsync(string accountId, string envelopeId, ScheduledSending scheduledSending = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(accountId, envelopeId, scheduledSending); return localVarResponse.Data; @@ -19976,7 +19976,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeSchedul /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (ScheduledSending) - public async System.Threading.Tasks.Task> UpdateEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, ScheduledSending scheduledSending = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, ScheduledSending scheduledSending = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20030,7 +20030,7 @@ public async System.Threading.Tasks.Task> UpdateEn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20085,7 +20085,7 @@ public ApiResponse UpdateEnvelopeTransferRuleWithHttpInfo( /// /// (optional) /// Task of EnvelopeTransferRule - public async System.Threading.Tasks.Task UpdateEnvelopeTransferRuleAsync(string accountId, string envelopeTransferRuleId, EnvelopeTransferRule envelopeTransferRule = null) + public async System.Threading.Tasks.Task UpdateEnvelopeTransferRuleAsync(string accountId, string envelopeTransferRuleId, EnvelopeTransferRule envelopeTransferRule = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeTransferRuleAsyncWithHttpInfo(accountId, envelopeTransferRuleId, envelopeTransferRule); return localVarResponse.Data; @@ -20099,7 +20099,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeTra /// /// (optional) /// Task of ApiResponse (EnvelopeTransferRule) - public async System.Threading.Tasks.Task> UpdateEnvelopeTransferRuleAsyncWithHttpInfo(string accountId, string envelopeTransferRuleId, EnvelopeTransferRule envelopeTransferRule = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeTransferRuleAsyncWithHttpInfo(string accountId, string envelopeTransferRuleId, EnvelopeTransferRule envelopeTransferRule = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20153,7 +20153,7 @@ public async System.Threading.Tasks.Task> Upda // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20205,7 +20205,7 @@ public ApiResponse UpdateEnvelopeTransferRulesW /// The external account number (int) or account ID Guid. /// (optional) /// Task of EnvelopeTransferRuleInformation - public async System.Threading.Tasks.Task UpdateEnvelopeTransferRulesAsync(string accountId, EnvelopeTransferRuleInformation envelopeTransferRuleInformation = null) + public async System.Threading.Tasks.Task UpdateEnvelopeTransferRulesAsync(string accountId, EnvelopeTransferRuleInformation envelopeTransferRuleInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeTransferRulesAsyncWithHttpInfo(accountId, envelopeTransferRuleInformation); return localVarResponse.Data; @@ -20218,7 +20218,7 @@ public async System.Threading.Tasks.Task Update /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (EnvelopeTransferRuleInformation) - public async System.Threading.Tasks.Task> UpdateEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopeTransferRuleInformation envelopeTransferRuleInformation = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeTransferRulesAsyncWithHttpInfo(string accountId, EnvelopeTransferRuleInformation envelopeTransferRuleInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20268,7 +20268,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowDefinitionWithHttpInfo(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of Workflow - public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId, Workflow workflow = null) + public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowDefinitionAsync(string accountId, string envelopeId, Workflow workflow = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeWorkflowDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflow); return localVarResponse.Data; @@ -20337,7 +20337,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowDefinit /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (Workflow) - public async System.Threading.Tasks.Task> UpdateEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, Workflow workflow = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeWorkflowDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, Workflow workflow = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20391,7 +20391,7 @@ public async System.Threading.Tasks.Task> UpdateEnvelopeWo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20449,7 +20449,7 @@ public ApiResponse UpdateEnvelopeWorkflowStepDefinitionWithHttpInf /// /// (optional) /// Task of WorkflowStep - public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowStepDefinitionAsync(string accountId, string envelopeId, string workflowStepId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(accountId, envelopeId, workflowStepId, workflowStep); return localVarResponse.Data; @@ -20464,7 +20464,7 @@ public async System.Threading.Tasks.Task UpdateEnvelopeWorkflowSte /// /// (optional) /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> UpdateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task> UpdateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, string workflowStepId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20522,7 +20522,7 @@ public async System.Threading.Tasks.Task> UpdateEnvelo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20577,7 +20577,7 @@ public ApiResponse UpdateLockWithHttpInfo(string accountId, str /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of LockInformation - public async System.Threading.Tasks.Task UpdateLockAsync(string accountId, string envelopeId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task UpdateLockAsync(string accountId, string envelopeId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateLockAsyncWithHttpInfo(accountId, envelopeId, lockRequest); return localVarResponse.Data; @@ -20591,7 +20591,7 @@ public async System.Threading.Tasks.Task UpdateLockAsync(string /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> UpdateLockAsyncWithHttpInfo(string accountId, string envelopeId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task> UpdateLockAsyncWithHttpInfo(string accountId, string envelopeId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20645,7 +20645,7 @@ public async System.Threading.Tasks.Task> UpdateLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20700,7 +20700,7 @@ public ApiResponse UpdateNotificationSettingsWithHttpInfo(string a /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of Notification - public async System.Threading.Tasks.Task UpdateNotificationSettingsAsync(string accountId, string envelopeId, EnvelopeNotificationRequest envelopeNotificationRequest = null) + public async System.Threading.Tasks.Task UpdateNotificationSettingsAsync(string accountId, string envelopeId, EnvelopeNotificationRequest envelopeNotificationRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateNotificationSettingsAsyncWithHttpInfo(accountId, envelopeId, envelopeNotificationRequest); return localVarResponse.Data; @@ -20714,7 +20714,7 @@ public async System.Threading.Tasks.Task UpdateNotificationSetting /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> UpdateNotificationSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeNotificationRequest envelopeNotificationRequest = null) + public async System.Threading.Tasks.Task> UpdateNotificationSettingsAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopeNotificationRequest envelopeNotificationRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20768,7 +20768,7 @@ public async System.Threading.Tasks.Task> UpdateNotifi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20826,7 +20826,7 @@ public ApiResponse UpdateRecipientDocumentVisibilityWith /// The ID of the recipient being accessed. /// (optional) /// Task of DocumentVisibilityList - public async System.Threading.Tasks.Task UpdateRecipientDocumentVisibilityAsync(string accountId, string envelopeId, string recipientId, DocumentVisibilityList documentVisibilityList = null) + public async System.Threading.Tasks.Task UpdateRecipientDocumentVisibilityAsync(string accountId, string envelopeId, string recipientId, DocumentVisibilityList documentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateRecipientDocumentVisibilityAsyncWithHttpInfo(accountId, envelopeId, recipientId, documentVisibilityList); return localVarResponse.Data; @@ -20841,7 +20841,7 @@ public async System.Threading.Tasks.Task UpdateRecipient /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (DocumentVisibilityList) - public async System.Threading.Tasks.Task> UpdateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, DocumentVisibilityList documentVisibilityList = null) + public async System.Threading.Tasks.Task> UpdateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, DocumentVisibilityList documentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -20899,7 +20899,7 @@ public async System.Threading.Tasks.Task> Up // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -20953,7 +20953,7 @@ public ApiResponse UpdateRecipientInitialsImageWithHttpInfo(string accou /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of void - public async System.Threading.Tasks.Task UpdateRecipientInitialsImageAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task UpdateRecipientInitialsImageAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { await UpdateRecipientInitialsImageAsyncWithHttpInfo(accountId, envelopeId, recipientId); } @@ -20966,7 +20966,7 @@ public async System.Threading.Tasks.Task UpdateRecipientInitialsImageAsync(strin /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateRecipientInitialsImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> UpdateRecipientInitialsImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21017,7 +21017,7 @@ public async System.Threading.Tasks.Task> UpdateRecipientIni // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21072,7 +21072,7 @@ public ApiResponse UpdateRecipientSignatureImageWithHttpInfo(string acco /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of void - public async System.Threading.Tasks.Task UpdateRecipientSignatureImageAsync(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task UpdateRecipientSignatureImageAsync(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { await UpdateRecipientSignatureImageAsyncWithHttpInfo(accountId, envelopeId, recipientId); } @@ -21085,7 +21085,7 @@ public async System.Threading.Tasks.Task UpdateRecipientSignatureImageAsync(stri /// The envelopeId Guid of the envelope being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateRecipientSignatureImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId) + public async System.Threading.Tasks.Task> UpdateRecipientSignatureImageAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21136,7 +21136,7 @@ public async System.Threading.Tasks.Task> UpdateRecipientSig // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21207,9 +21207,9 @@ public ApiResponse UpdateRecipientsWithHttpInfo(string /// (optional) /// Options for modifying the behavior of the function. /// Task of RecipientsUpdateSummary - public async System.Threading.Tasks.Task UpdateRecipientsAsync(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.UpdateRecipientsOptions options = null) + public async System.Threading.Tasks.Task UpdateRecipientsAsync(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.UpdateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateRecipientsAsyncWithHttpInfo(accountId, envelopeId, recipients, options); + ApiResponse localVarResponse = await UpdateRecipientsAsyncWithHttpInfo(accountId, envelopeId, recipients, options, cancellationToken); return localVarResponse.Data; } @@ -21222,7 +21222,7 @@ public async System.Threading.Tasks.Task UpdateRecipien /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (RecipientsUpdateSummary) - public async System.Threading.Tasks.Task> UpdateRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.UpdateRecipientsOptions options = null) + public async System.Threading.Tasks.Task> UpdateRecipientsAsyncWithHttpInfo(string accountId, string envelopeId, Recipients recipients = null, EnvelopesApi.UpdateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21282,7 +21282,7 @@ public async System.Threading.Tasks.Task> U // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21337,7 +21337,7 @@ public ApiResponse UpdateRecipientsDocumentVisibilityWit /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of DocumentVisibilityList - public async System.Threading.Tasks.Task UpdateRecipientsDocumentVisibilityAsync(string accountId, string envelopeId, DocumentVisibilityList documentVisibilityList = null) + public async System.Threading.Tasks.Task UpdateRecipientsDocumentVisibilityAsync(string accountId, string envelopeId, DocumentVisibilityList documentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateRecipientsDocumentVisibilityAsyncWithHttpInfo(accountId, envelopeId, documentVisibilityList); return localVarResponse.Data; @@ -21351,7 +21351,7 @@ public async System.Threading.Tasks.Task UpdateRecipient /// The envelopeId Guid of the envelope being accessed. /// (optional) /// Task of ApiResponse (DocumentVisibilityList) - public async System.Threading.Tasks.Task> UpdateRecipientsDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, DocumentVisibilityList documentVisibilityList = null) + public async System.Threading.Tasks.Task> UpdateRecipientsDocumentVisibilityAsyncWithHttpInfo(string accountId, string envelopeId, DocumentVisibilityList documentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21405,7 +21405,7 @@ public async System.Threading.Tasks.Task> Up // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21463,7 +21463,7 @@ public System.IO.Stream UpdateRegenDocument(string accountId, string envelopeId, /// /// (optional) /// Task of System.IO.Stream - public async System.Threading.Tasks.Task UpdateRegenDocumentAsync(string accountId, string envelopeId, string regenDocumentId, Document document = null) + public async System.Threading.Tasks.Task UpdateRegenDocumentAsync(string accountId, string envelopeId, string regenDocumentId, Document document = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateRegenDocumentAsyncWithHttpInfo(accountId, envelopeId, regenDocumentId, document); return localVarResponse.Data; @@ -21478,7 +21478,7 @@ public System.IO.Stream UpdateRegenDocument(string accountId, string envelopeId, /// /// (optional) /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> UpdateRegenDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string regenDocumentId, Document document = null) + public async System.Threading.Tasks.Task> UpdateRegenDocumentAsyncWithHttpInfo(string accountId, string envelopeId, string regenDocumentId, Document document = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21536,7 +21536,7 @@ public System.IO.Stream UpdateRegenDocument(string accountId, string envelopeId, // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21594,7 +21594,7 @@ public ApiResponse UpdateTabsWithHttpInfo(string accountId, string envelop /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTabsAsyncWithHttpInfo(accountId, envelopeId, recipientId, tabs); return localVarResponse.Data; @@ -21609,7 +21609,7 @@ public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> UpdateTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null) + public async System.Threading.Tasks.Task> UpdateTabsAsyncWithHttpInfo(string accountId, string envelopeId, string recipientId, Tabs tabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21667,7 +21667,7 @@ public async System.Threading.Tasks.Task> UpdateTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21718,7 +21718,7 @@ public ApiResponse UpdateTabsBlobWithHttpInfo(string accountId, string e /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of void - public async System.Threading.Tasks.Task UpdateTabsBlobAsync(string accountId, string envelopeId) + public async System.Threading.Tasks.Task UpdateTabsBlobAsync(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { await UpdateTabsBlobAsyncWithHttpInfo(accountId, envelopeId); } @@ -21730,7 +21730,7 @@ public async System.Threading.Tasks.Task UpdateTabsBlobAsync(string accountId, s /// The external account number (int) or account ID Guid. /// The envelopeId Guid of the envelope being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateTabsBlobAsyncWithHttpInfo(string accountId, string envelopeId) + public async System.Threading.Tasks.Task> UpdateTabsBlobAsyncWithHttpInfo(string accountId, string envelopeId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21776,7 +21776,7 @@ public async System.Threading.Tasks.Task> UpdateTabsBlobAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21835,7 +21835,7 @@ public ApiResponse UpdateTemplateDelayedRoutingDefinitionWithHtt /// /// (optional) /// Task of DelayedRouting - public async System.Threading.Tasks.Task UpdateTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId, DelayedRouting delayedRouting = null) + public async System.Threading.Tasks.Task UpdateTemplateDelayedRoutingDefinitionAsync(string accountId, string templateId, string workflowStepId, DelayedRouting delayedRouting = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId, delayedRouting); return localVarResponse.Data; @@ -21850,7 +21850,7 @@ public async System.Threading.Tasks.Task UpdateTemplateDelayedRo /// /// (optional) /// Task of ApiResponse (DelayedRouting) - public async System.Threading.Tasks.Task> UpdateTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, DelayedRouting delayedRouting = null) + public async System.Threading.Tasks.Task> UpdateTemplateDelayedRoutingDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, DelayedRouting delayedRouting = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -21908,7 +21908,7 @@ public async System.Threading.Tasks.Task> UpdateTemp // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -21966,7 +21966,7 @@ public ApiResponse UpdateTemplateRecipientDocume /// The ID of the recipient being accessed. /// (optional) /// Task of TemplateDocumentVisibilityList - public async System.Threading.Tasks.Task UpdateTemplateRecipientDocumentVisibilityAsync(string accountId, string templateId, string recipientId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null) + public async System.Threading.Tasks.Task UpdateTemplateRecipientDocumentVisibilityAsync(string accountId, string templateId, string recipientId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(accountId, templateId, recipientId, templateDocumentVisibilityList); return localVarResponse.Data; @@ -21981,7 +21981,7 @@ public async System.Threading.Tasks.Task UpdateT /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (TemplateDocumentVisibilityList) - public async System.Threading.Tasks.Task> UpdateTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null) + public async System.Threading.Tasks.Task> UpdateTemplateRecipientDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -22039,7 +22039,7 @@ public async System.Threading.Tasks.Task UpdateTemplateRecipientsDocum /// The ID of the template being accessed. /// (optional) /// Task of TemplateDocumentVisibilityList - public async System.Threading.Tasks.Task UpdateTemplateRecipientsDocumentVisibilityAsync(string accountId, string templateId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null) + public async System.Threading.Tasks.Task UpdateTemplateRecipientsDocumentVisibilityAsync(string accountId, string templateId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateRecipientsDocumentVisibilityAsyncWithHttpInfo(accountId, templateId, templateDocumentVisibilityList); return localVarResponse.Data; @@ -22108,7 +22108,7 @@ public async System.Threading.Tasks.Task UpdateT /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (TemplateDocumentVisibilityList) - public async System.Threading.Tasks.Task> UpdateTemplateRecipientsDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null) + public async System.Threading.Tasks.Task> UpdateTemplateRecipientsDocumentVisibilityAsyncWithHttpInfo(string accountId, string templateId, TemplateDocumentVisibilityList templateDocumentVisibilityList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -22162,7 +22162,7 @@ public async System.Threading.Tasks.Task UpdateTemplateScheduledSendingDefinitionWit /// The ID of the template being accessed. /// (optional) /// Task of ScheduledSending - public async System.Threading.Tasks.Task UpdateTemplateScheduledSendingDefinitionAsync(string accountId, string templateId, ScheduledSending scheduledSending = null) + public async System.Threading.Tasks.Task UpdateTemplateScheduledSendingDefinitionAsync(string accountId, string templateId, ScheduledSending scheduledSending = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateScheduledSendingDefinitionAsyncWithHttpInfo(accountId, templateId, scheduledSending); return localVarResponse.Data; @@ -22231,7 +22231,7 @@ public async System.Threading.Tasks.Task UpdateTemplateSchedul /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (ScheduledSending) - public async System.Threading.Tasks.Task> UpdateTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId, ScheduledSending scheduledSending = null) + public async System.Threading.Tasks.Task> UpdateTemplateScheduledSendingDefinitionAsyncWithHttpInfo(string accountId, string templateId, ScheduledSending scheduledSending = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -22285,7 +22285,7 @@ public async System.Threading.Tasks.Task> UpdateTe // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -22340,7 +22340,7 @@ public ApiResponse UpdateTemplateWorkflowDefinitionWithHttpInfo(string /// The ID of the template being accessed. /// (optional) /// Task of Workflow - public async System.Threading.Tasks.Task UpdateTemplateWorkflowDefinitionAsync(string accountId, string templateId, Workflow workflow = null) + public async System.Threading.Tasks.Task UpdateTemplateWorkflowDefinitionAsync(string accountId, string templateId, Workflow workflow = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateWorkflowDefinitionAsyncWithHttpInfo(accountId, templateId, workflow); return localVarResponse.Data; @@ -22354,7 +22354,7 @@ public async System.Threading.Tasks.Task UpdateTemplateWorkflowDefinit /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (Workflow) - public async System.Threading.Tasks.Task> UpdateTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId, Workflow workflow = null) + public async System.Threading.Tasks.Task> UpdateTemplateWorkflowDefinitionAsyncWithHttpInfo(string accountId, string templateId, Workflow workflow = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -22408,7 +22408,7 @@ public async System.Threading.Tasks.Task> UpdateTemplateWo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -22466,7 +22466,7 @@ public ApiResponse UpdateTemplateWorkflowStepDefinitionWithHttpInf /// /// (optional) /// Task of WorkflowStep - public async System.Threading.Tasks.Task UpdateTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task UpdateTemplateWorkflowStepDefinitionAsync(string accountId, string templateId, string workflowStepId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(accountId, templateId, workflowStepId, workflowStep); return localVarResponse.Data; @@ -22481,7 +22481,7 @@ public async System.Threading.Tasks.Task UpdateTemplateWorkflowSte /// /// (optional) /// Task of ApiResponse (WorkflowStep) - public async System.Threading.Tasks.Task> UpdateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, WorkflowStep workflowStep = null) + public async System.Threading.Tasks.Task> UpdateTemplateWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string templateId, string workflowStepId, WorkflowStep workflowStep = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -22539,7 +22539,7 @@ public async System.Threading.Tasks.Task> UpdateTempla // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/FoldersApi.cs b/sdk/src/DocuSign.eSign/Api/FoldersApi.cs index 949354b71..ba0926409 100644 --- a/sdk/src/DocuSign.eSign/Api/FoldersApi.cs +++ b/sdk/src/DocuSign.eSign/Api/FoldersApi.cs @@ -328,9 +328,9 @@ public ApiResponse ListWithHttpInfo(string accountId, FoldersAp /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of FoldersResponse - public async System.Threading.Tasks.Task ListAsync(string accountId, FoldersApi.ListOptions options = null) + public async System.Threading.Tasks.Task ListAsync(string accountId, FoldersApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -341,7 +341,7 @@ public async System.Threading.Tasks.Task ListAsync(string accou /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (FoldersResponse) - public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, FoldersApi.ListOptions options = null) + public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, FoldersApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -391,7 +391,7 @@ public async System.Threading.Tasks.Task> ListAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -468,9 +468,9 @@ public ApiResponse ListItemsWithHttpInfo(string accountId, /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of FolderItemsResponse - public async System.Threading.Tasks.Task ListItemsAsync(string accountId, string folderId, FoldersApi.ListItemsOptions options = null) + public async System.Threading.Tasks.Task ListItemsAsync(string accountId, string folderId, FoldersApi.ListItemsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListItemsAsyncWithHttpInfo(accountId, folderId, options); + ApiResponse localVarResponse = await ListItemsAsyncWithHttpInfo(accountId, folderId, options, cancellationToken); return localVarResponse.Data; } @@ -482,7 +482,7 @@ public async System.Threading.Tasks.Task ListItemsAsync(str /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (FolderItemsResponse) - public async System.Threading.Tasks.Task> ListItemsAsyncWithHttpInfo(string accountId, string folderId, FoldersApi.ListItemsOptions options = null) + public async System.Threading.Tasks.Task> ListItemsAsyncWithHttpInfo(string accountId, string folderId, FoldersApi.ListItemsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -539,7 +539,7 @@ public async System.Threading.Tasks.Task> ListI // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -594,7 +594,7 @@ public ApiResponse MoveEnvelopesWithHttpInfo(string accountId, /// The ID of the folder being accessed. /// (optional) /// Task of FoldersResponse - public async System.Threading.Tasks.Task MoveEnvelopesAsync(string accountId, string folderId, FoldersRequest foldersRequest = null) + public async System.Threading.Tasks.Task MoveEnvelopesAsync(string accountId, string folderId, FoldersRequest foldersRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await MoveEnvelopesAsyncWithHttpInfo(accountId, folderId, foldersRequest); return localVarResponse.Data; @@ -608,7 +608,7 @@ public async System.Threading.Tasks.Task MoveEnvelopesAsync(str /// The ID of the folder being accessed. /// (optional) /// Task of ApiResponse (FoldersResponse) - public async System.Threading.Tasks.Task> MoveEnvelopesAsyncWithHttpInfo(string accountId, string folderId, FoldersRequest foldersRequest = null) + public async System.Threading.Tasks.Task> MoveEnvelopesAsyncWithHttpInfo(string accountId, string folderId, FoldersRequest foldersRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -662,7 +662,7 @@ public async System.Threading.Tasks.Task> MoveEnvel // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -739,9 +739,9 @@ public ApiResponse SearchWithHttpInfo(string accountId, stri /// Specifies the envelope group that is searched by the request. These are logical groupings, not actual folder names. Valid values are: drafts, awaiting_my_signature, completed, out_for_signature. /// Options for modifying the behavior of the function. /// Task of FolderItemResponse - public async System.Threading.Tasks.Task SearchAsync(string accountId, string searchFolderId, FoldersApi.SearchOptions options = null) + public async System.Threading.Tasks.Task SearchAsync(string accountId, string searchFolderId, FoldersApi.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await SearchAsyncWithHttpInfo(accountId, searchFolderId, options); + ApiResponse localVarResponse = await SearchAsyncWithHttpInfo(accountId, searchFolderId, options, cancellationToken); return localVarResponse.Data; } @@ -753,7 +753,7 @@ public async System.Threading.Tasks.Task SearchAsync(string /// Specifies the envelope group that is searched by the request. These are logical groupings, not actual folder names. Valid values are: drafts, awaiting_my_signature, completed, out_for_signature. /// Options for modifying the behavior of the function. /// Task of ApiResponse (FolderItemResponse) - public async System.Threading.Tasks.Task> SearchAsyncWithHttpInfo(string accountId, string searchFolderId, FoldersApi.SearchOptions options = null) + public async System.Threading.Tasks.Task> SearchAsyncWithHttpInfo(string accountId, string searchFolderId, FoldersApi.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -810,7 +810,7 @@ public async System.Threading.Tasks.Task> Search // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/GroupsApi.cs b/sdk/src/DocuSign.eSign/Api/GroupsApi.cs index 1ff187f09..21dde1978 100644 --- a/sdk/src/DocuSign.eSign/Api/GroupsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/GroupsApi.cs @@ -596,7 +596,7 @@ public ApiResponse CreateGroupsWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// (optional) /// Task of GroupInformation - public async System.Threading.Tasks.Task CreateGroupsAsync(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task CreateGroupsAsync(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateGroupsAsyncWithHttpInfo(accountId, groupInformation); return localVarResponse.Data; @@ -609,7 +609,7 @@ public async System.Threading.Tasks.Task CreateGroupsAsync(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> CreateGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task> CreateGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -659,7 +659,7 @@ public async System.Threading.Tasks.Task> CreateGr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -714,7 +714,7 @@ public ApiResponse DeleteBrandsWithHttpInfo(string accountId, strin /// The ID of the group being accessed. /// (optional) /// Task of GroupBrands - public async System.Threading.Tasks.Task DeleteBrandsAsync(string accountId, string groupId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task DeleteBrandsAsync(string accountId, string groupId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBrandsAsyncWithHttpInfo(accountId, groupId, brandsRequest); return localVarResponse.Data; @@ -728,7 +728,7 @@ public async System.Threading.Tasks.Task DeleteBrandsAsync(string a /// The ID of the group being accessed. /// (optional) /// Task of ApiResponse (GroupBrands) - public async System.Threading.Tasks.Task> DeleteBrandsAsyncWithHttpInfo(string accountId, string groupId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task> DeleteBrandsAsyncWithHttpInfo(string accountId, string groupId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -782,7 +782,7 @@ public async System.Threading.Tasks.Task> DeleteBrandsA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -837,7 +837,7 @@ public ApiResponse DeleteGroupUsersWithHttpInfo(string accountId, /// The ID of the group being accessed. /// (optional) /// Task of UsersResponse - public async System.Threading.Tasks.Task DeleteGroupUsersAsync(string accountId, string groupId, UserInfoList userInfoList = null) + public async System.Threading.Tasks.Task DeleteGroupUsersAsync(string accountId, string groupId, UserInfoList userInfoList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteGroupUsersAsyncWithHttpInfo(accountId, groupId, userInfoList); return localVarResponse.Data; @@ -851,7 +851,7 @@ public async System.Threading.Tasks.Task DeleteGroupUsersAsync(st /// The ID of the group being accessed. /// (optional) /// Task of ApiResponse (UsersResponse) - public async System.Threading.Tasks.Task> DeleteGroupUsersAsyncWithHttpInfo(string accountId, string groupId, UserInfoList userInfoList = null) + public async System.Threading.Tasks.Task> DeleteGroupUsersAsyncWithHttpInfo(string accountId, string groupId, UserInfoList userInfoList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -905,7 +905,7 @@ public async System.Threading.Tasks.Task> DeleteGroup // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -957,7 +957,7 @@ public ApiResponse DeleteGroupsWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// (optional) /// Task of GroupInformation - public async System.Threading.Tasks.Task DeleteGroupsAsync(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task DeleteGroupsAsync(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteGroupsAsyncWithHttpInfo(accountId, groupInformation); return localVarResponse.Data; @@ -970,7 +970,7 @@ public async System.Threading.Tasks.Task DeleteGroupsAsync(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> DeleteGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task> DeleteGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1020,7 +1020,7 @@ public async System.Threading.Tasks.Task> DeleteGr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1072,7 +1072,7 @@ public ApiResponse GetBrandsWithHttpInfo(string accountId, string g /// The external account number (int) or account ID Guid. /// The ID of the group being accessed. /// Task of GroupBrands - public async System.Threading.Tasks.Task GetBrandsAsync(string accountId, string groupId) + public async System.Threading.Tasks.Task GetBrandsAsync(string accountId, string groupId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetBrandsAsyncWithHttpInfo(accountId, groupId); return localVarResponse.Data; @@ -1085,7 +1085,7 @@ public async System.Threading.Tasks.Task GetBrandsAsync(string acco /// The external account number (int) or account ID Guid. /// The ID of the group being accessed. /// Task of ApiResponse (GroupBrands) - public async System.Threading.Tasks.Task> GetBrandsAsyncWithHttpInfo(string accountId, string groupId) + public async System.Threading.Tasks.Task> GetBrandsAsyncWithHttpInfo(string accountId, string groupId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1131,7 +1131,7 @@ public async System.Threading.Tasks.Task> GetBrandsAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1196,9 +1196,9 @@ public ApiResponse ListGroupUsersWithHttpInfo(string accountId, s /// The ID of the group being accessed. /// Options for modifying the behavior of the function. /// Task of UsersResponse - public async System.Threading.Tasks.Task ListGroupUsersAsync(string accountId, string groupId, GroupsApi.ListGroupUsersOptions options = null) + public async System.Threading.Tasks.Task ListGroupUsersAsync(string accountId, string groupId, GroupsApi.ListGroupUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListGroupUsersAsyncWithHttpInfo(accountId, groupId, options); + ApiResponse localVarResponse = await ListGroupUsersAsyncWithHttpInfo(accountId, groupId, options, cancellationToken); return localVarResponse.Data; } @@ -1210,7 +1210,7 @@ public async System.Threading.Tasks.Task ListGroupUsersAsync(stri /// The ID of the group being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (UsersResponse) - public async System.Threading.Tasks.Task> ListGroupUsersAsyncWithHttpInfo(string accountId, string groupId, GroupsApi.ListGroupUsersOptions options = null) + public async System.Threading.Tasks.Task> ListGroupUsersAsyncWithHttpInfo(string accountId, string groupId, GroupsApi.ListGroupUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1261,7 +1261,7 @@ public async System.Threading.Tasks.Task> ListGroupUs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1329,9 +1329,9 @@ public ApiResponse ListGroupsWithHttpInfo(string accountId, Gr /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of GroupInformation - public async System.Threading.Tasks.Task ListGroupsAsync(string accountId, GroupsApi.ListGroupsOptions options = null) + public async System.Threading.Tasks.Task ListGroupsAsync(string accountId, GroupsApi.ListGroupsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListGroupsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListGroupsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1342,7 +1342,7 @@ public async System.Threading.Tasks.Task ListGroupsAsync(strin /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> ListGroupsAsyncWithHttpInfo(string accountId, GroupsApi.ListGroupsOptions options = null) + public async System.Threading.Tasks.Task> ListGroupsAsyncWithHttpInfo(string accountId, GroupsApi.ListGroupsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1392,7 +1392,7 @@ public async System.Threading.Tasks.Task> ListGrou // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1447,7 +1447,7 @@ public ApiResponse UpdateBrandsWithHttpInfo(string accountId, strin /// The ID of the group being accessed. /// (optional) /// Task of GroupBrands - public async System.Threading.Tasks.Task UpdateBrandsAsync(string accountId, string groupId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task UpdateBrandsAsync(string accountId, string groupId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateBrandsAsyncWithHttpInfo(accountId, groupId, brandsRequest); return localVarResponse.Data; @@ -1461,7 +1461,7 @@ public async System.Threading.Tasks.Task UpdateBrandsAsync(string a /// The ID of the group being accessed. /// (optional) /// Task of ApiResponse (GroupBrands) - public async System.Threading.Tasks.Task> UpdateBrandsAsyncWithHttpInfo(string accountId, string groupId, BrandsRequest brandsRequest = null) + public async System.Threading.Tasks.Task> UpdateBrandsAsyncWithHttpInfo(string accountId, string groupId, BrandsRequest brandsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1515,7 +1515,7 @@ public async System.Threading.Tasks.Task> UpdateBrandsA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1570,7 +1570,7 @@ public ApiResponse UpdateGroupUsersWithHttpInfo(string accountId, /// The ID of the group being accessed. /// (optional) /// Task of UsersResponse - public async System.Threading.Tasks.Task UpdateGroupUsersAsync(string accountId, string groupId, UserInfoList userInfoList = null) + public async System.Threading.Tasks.Task UpdateGroupUsersAsync(string accountId, string groupId, UserInfoList userInfoList = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateGroupUsersAsyncWithHttpInfo(accountId, groupId, userInfoList); return localVarResponse.Data; @@ -1584,7 +1584,7 @@ public async System.Threading.Tasks.Task UpdateGroupUsersAsync(st /// The ID of the group being accessed. /// (optional) /// Task of ApiResponse (UsersResponse) - public async System.Threading.Tasks.Task> UpdateGroupUsersAsyncWithHttpInfo(string accountId, string groupId, UserInfoList userInfoList = null) + public async System.Threading.Tasks.Task> UpdateGroupUsersAsyncWithHttpInfo(string accountId, string groupId, UserInfoList userInfoList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1638,7 +1638,7 @@ public async System.Threading.Tasks.Task> UpdateGroup // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1690,7 +1690,7 @@ public ApiResponse UpdateGroupsWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// (optional) /// Task of GroupInformation - public async System.Threading.Tasks.Task UpdateGroupsAsync(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task UpdateGroupsAsync(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateGroupsAsyncWithHttpInfo(accountId, groupInformation); return localVarResponse.Data; @@ -1703,7 +1703,7 @@ public async System.Threading.Tasks.Task UpdateGroupsAsync(str /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> UpdateGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task> UpdateGroupsAsyncWithHttpInfo(string accountId, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1753,7 +1753,7 @@ public async System.Threading.Tasks.Task> UpdateGr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/NotaryApi.cs b/sdk/src/DocuSign.eSign/Api/NotaryApi.cs index f536cb559..1eac71325 100644 --- a/sdk/src/DocuSign.eSign/Api/NotaryApi.cs +++ b/sdk/src/DocuSign.eSign/Api/NotaryApi.cs @@ -533,7 +533,7 @@ public ApiResponse CreateNotaryWithHttpInfo(Notary notary = null) /// Thrown when fails to make API call /// (optional) /// Task of Notary - public async System.Threading.Tasks.Task CreateNotaryAsync(Notary notary = null) + public async System.Threading.Tasks.Task CreateNotaryAsync(Notary notary = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateNotaryAsyncWithHttpInfo(notary); return localVarResponse.Data; @@ -545,7 +545,7 @@ public async System.Threading.Tasks.Task CreateNotaryAsync(Notary notary /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse (Notary) - public async System.Threading.Tasks.Task> CreateNotaryAsyncWithHttpInfo(Notary notary = null) + public async System.Threading.Tasks.Task> CreateNotaryAsyncWithHttpInfo(Notary notary = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary"; @@ -591,7 +591,7 @@ public async System.Threading.Tasks.Task> CreateNotaryAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -640,7 +640,7 @@ public ApiResponse CreateNotaryJurisdictionsWithHttpInfo(Not /// Thrown when fails to make API call /// (optional) /// Task of NotaryJurisdiction - public async System.Threading.Tasks.Task CreateNotaryJurisdictionsAsync(NotaryJurisdiction notaryJurisdiction = null) + public async System.Threading.Tasks.Task CreateNotaryJurisdictionsAsync(NotaryJurisdiction notaryJurisdiction = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateNotaryJurisdictionsAsyncWithHttpInfo(notaryJurisdiction); return localVarResponse.Data; @@ -652,7 +652,7 @@ public async System.Threading.Tasks.Task CreateNotaryJurisdi /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse (NotaryJurisdiction) - public async System.Threading.Tasks.Task> CreateNotaryJurisdictionsAsyncWithHttpInfo(NotaryJurisdiction notaryJurisdiction = null) + public async System.Threading.Tasks.Task> CreateNotaryJurisdictionsAsyncWithHttpInfo(NotaryJurisdiction notaryJurisdiction = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary/jurisdictions"; @@ -698,7 +698,7 @@ public async System.Threading.Tasks.Task> Create // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -746,7 +746,7 @@ public ApiResponse DeleteNotaryJurisdictionWithHttpInfo(string jurisdict /// Thrown when fails to make API call /// /// Task of void - public async System.Threading.Tasks.Task DeleteNotaryJurisdictionAsync(string jurisdictionId) + public async System.Threading.Tasks.Task DeleteNotaryJurisdictionAsync(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { await DeleteNotaryJurisdictionAsyncWithHttpInfo(jurisdictionId); } @@ -757,7 +757,7 @@ public async System.Threading.Tasks.Task DeleteNotaryJurisdictionAsync(string ju /// Thrown when fails to make API call /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId) + public async System.Threading.Tasks.Task> DeleteNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'jurisdictionId' is set if (jurisdictionId == null) @@ -799,7 +799,7 @@ public async System.Threading.Tasks.Task> DeleteNotaryJurisd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -857,9 +857,9 @@ public ApiResponse GetNotaryWithHttpInfo(NotaryApi.GetNotaryOption /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of NotaryResult - public async System.Threading.Tasks.Task GetNotaryAsync(NotaryApi.GetNotaryOptions options = null) + public async System.Threading.Tasks.Task GetNotaryAsync(NotaryApi.GetNotaryOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetNotaryAsyncWithHttpInfo(options); + ApiResponse localVarResponse = await GetNotaryAsyncWithHttpInfo(options, cancellationToken); return localVarResponse.Data; } @@ -869,7 +869,7 @@ public async System.Threading.Tasks.Task GetNotaryAsync(NotaryApi. /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of ApiResponse (NotaryResult) - public async System.Threading.Tasks.Task> GetNotaryAsyncWithHttpInfo(NotaryApi.GetNotaryOptions options = null) + public async System.Threading.Tasks.Task> GetNotaryAsyncWithHttpInfo(NotaryApi.GetNotaryOptions options = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary"; @@ -911,7 +911,7 @@ public async System.Threading.Tasks.Task> GetNotaryAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -960,7 +960,7 @@ public ApiResponse GetNotaryJurisdictionWithHttpInfo(string /// Thrown when fails to make API call /// /// Task of NotaryJurisdiction - public async System.Threading.Tasks.Task GetNotaryJurisdictionAsync(string jurisdictionId) + public async System.Threading.Tasks.Task GetNotaryJurisdictionAsync(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetNotaryJurisdictionAsyncWithHttpInfo(jurisdictionId); return localVarResponse.Data; @@ -972,7 +972,7 @@ public async System.Threading.Tasks.Task GetNotaryJurisdicti /// Thrown when fails to make API call /// /// Task of ApiResponse (NotaryJurisdiction) - public async System.Threading.Tasks.Task> GetNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId) + public async System.Threading.Tasks.Task> GetNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'jurisdictionId' is set if (jurisdictionId == null) @@ -1014,7 +1014,7 @@ public async System.Threading.Tasks.Task> GetNot // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1062,7 +1062,7 @@ public ApiResponse GetNotaryJurisdictionSealWithHttpInfo(string jurisdic /// Thrown when fails to make API call /// /// Task of void - public async System.Threading.Tasks.Task GetNotaryJurisdictionSealAsync(string jurisdictionId) + public async System.Threading.Tasks.Task GetNotaryJurisdictionSealAsync(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { await GetNotaryJurisdictionSealAsyncWithHttpInfo(jurisdictionId); } @@ -1073,7 +1073,7 @@ public async System.Threading.Tasks.Task GetNotaryJurisdictionSealAsync(string j /// Thrown when fails to make API call /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetNotaryJurisdictionSealAsyncWithHttpInfo(string jurisdictionId) + public async System.Threading.Tasks.Task> GetNotaryJurisdictionSealAsyncWithHttpInfo(string jurisdictionId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'jurisdictionId' is set if (jurisdictionId == null) @@ -1115,7 +1115,7 @@ public async System.Threading.Tasks.Task> GetNotaryJurisdict // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1162,7 +1162,7 @@ public ApiResponse GetNotaryJurisdictionsWithHttpInfo() /// /// Thrown when fails to make API call /// Task of NotaryJurisdictionList - public async System.Threading.Tasks.Task GetNotaryJurisdictionsAsync() + public async System.Threading.Tasks.Task GetNotaryJurisdictionsAsync(, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetNotaryJurisdictionsAsyncWithHttpInfo(); return localVarResponse.Data; @@ -1173,7 +1173,7 @@ public async System.Threading.Tasks.Task GetNotaryJurisd /// /// Thrown when fails to make API call /// Task of ApiResponse (NotaryJurisdictionList) - public async System.Threading.Tasks.Task> GetNotaryJurisdictionsAsyncWithHttpInfo() + public async System.Threading.Tasks.Task> GetNotaryJurisdictionsAsyncWithHttpInfo(, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary/jurisdictions"; @@ -1211,7 +1211,7 @@ public async System.Threading.Tasks.Task> Ge // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1272,9 +1272,9 @@ public ApiResponse ListNotaryJournalsWithHttpInfo(NotaryApi.L /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of NotaryJournalList - public async System.Threading.Tasks.Task ListNotaryJournalsAsync(NotaryApi.ListNotaryJournalsOptions options = null) + public async System.Threading.Tasks.Task ListNotaryJournalsAsync(NotaryApi.ListNotaryJournalsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListNotaryJournalsAsyncWithHttpInfo(options); + ApiResponse localVarResponse = await ListNotaryJournalsAsyncWithHttpInfo(options, cancellationToken); return localVarResponse.Data; } @@ -1284,7 +1284,7 @@ public async System.Threading.Tasks.Task ListNotaryJournalsAs /// Thrown when fails to make API call /// Options for modifying the behavior of the function. /// Task of ApiResponse (NotaryJournalList) - public async System.Threading.Tasks.Task> ListNotaryJournalsAsyncWithHttpInfo(NotaryApi.ListNotaryJournalsOptions options = null) + public async System.Threading.Tasks.Task> ListNotaryJournalsAsyncWithHttpInfo(NotaryApi.ListNotaryJournalsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary/journals"; @@ -1328,7 +1328,7 @@ public async System.Threading.Tasks.Task> ListNot // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1377,7 +1377,7 @@ public ApiResponse UpdateNotaryWithHttpInfo(Notary notary = null) /// Thrown when fails to make API call /// (optional) /// Task of Notary - public async System.Threading.Tasks.Task UpdateNotaryAsync(Notary notary = null) + public async System.Threading.Tasks.Task UpdateNotaryAsync(Notary notary = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateNotaryAsyncWithHttpInfo(notary); return localVarResponse.Data; @@ -1389,7 +1389,7 @@ public async System.Threading.Tasks.Task UpdateNotaryAsync(Notary notary /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse (Notary) - public async System.Threading.Tasks.Task> UpdateNotaryAsyncWithHttpInfo(Notary notary = null) + public async System.Threading.Tasks.Task> UpdateNotaryAsyncWithHttpInfo(Notary notary = null, System.Threading.CancellationToken cancellationToken = default) { var localVarPath = "/v2.1/current_user/notary"; @@ -1435,7 +1435,7 @@ public async System.Threading.Tasks.Task> UpdateNotaryAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1487,7 +1487,7 @@ public ApiResponse UpdateNotaryJurisdictionWithHttpInfo(stri /// /// (optional) /// Task of NotaryJurisdiction - public async System.Threading.Tasks.Task UpdateNotaryJurisdictionAsync(string jurisdictionId, NotaryJurisdiction notaryJurisdiction = null) + public async System.Threading.Tasks.Task UpdateNotaryJurisdictionAsync(string jurisdictionId, NotaryJurisdiction notaryJurisdiction = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateNotaryJurisdictionAsyncWithHttpInfo(jurisdictionId, notaryJurisdiction); return localVarResponse.Data; @@ -1500,7 +1500,7 @@ public async System.Threading.Tasks.Task UpdateNotaryJurisdi /// /// (optional) /// Task of ApiResponse (NotaryJurisdiction) - public async System.Threading.Tasks.Task> UpdateNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId, NotaryJurisdiction notaryJurisdiction = null) + public async System.Threading.Tasks.Task> UpdateNotaryJurisdictionAsyncWithHttpInfo(string jurisdictionId, NotaryJurisdiction notaryJurisdiction = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'jurisdictionId' is set if (jurisdictionId == null) @@ -1550,7 +1550,7 @@ public async System.Threading.Tasks.Task> Update // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/OrganizationsApi.cs b/sdk/src/DocuSign.eSign/Api/OrganizationsApi.cs index 56d7316d8..48da7658c 100644 --- a/sdk/src/DocuSign.eSign/Api/OrganizationsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/OrganizationsApi.cs @@ -161,7 +161,7 @@ public ApiResponse GetReportV2WithHttpInfo(string organizationId, string /// /// /// Task of void - public async System.Threading.Tasks.Task GetReportV2Async(string organizationId, string reportCorrelationId) + public async System.Threading.Tasks.Task GetReportV2Async(string organizationId, string reportCorrelationId, System.Threading.CancellationToken cancellationToken = default) { await GetReportV2AsyncWithHttpInfo(organizationId, reportCorrelationId); } @@ -173,7 +173,7 @@ public async System.Threading.Tasks.Task GetReportV2Async(string organizationId, /// /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetReportV2AsyncWithHttpInfo(string organizationId, string reportCorrelationId) + public async System.Threading.Tasks.Task> GetReportV2AsyncWithHttpInfo(string organizationId, string reportCorrelationId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'organizationId' is set if (organizationId == null) @@ -219,7 +219,7 @@ public async System.Threading.Tasks.Task> GetReportV2AsyncWi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/PowerFormsApi.cs b/sdk/src/DocuSign.eSign/Api/PowerFormsApi.cs index 51f50cca3..b3d007a8f 100644 --- a/sdk/src/DocuSign.eSign/Api/PowerFormsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/PowerFormsApi.cs @@ -492,7 +492,7 @@ public ApiResponse CreatePowerFormWithHttpInfo(string accountId, Powe /// The external account number (int) or account ID Guid. /// (optional) /// Task of PowerForm - public async System.Threading.Tasks.Task CreatePowerFormAsync(string accountId, PowerForm powerForm = null) + public async System.Threading.Tasks.Task CreatePowerFormAsync(string accountId, PowerForm powerForm = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreatePowerFormAsyncWithHttpInfo(accountId, powerForm); return localVarResponse.Data; @@ -505,7 +505,7 @@ public async System.Threading.Tasks.Task CreatePowerFormAsync(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (PowerForm) - public async System.Threading.Tasks.Task> CreatePowerFormAsyncWithHttpInfo(string accountId, PowerForm powerForm = null) + public async System.Threading.Tasks.Task> CreatePowerFormAsyncWithHttpInfo(string accountId, PowerForm powerForm = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -555,7 +555,7 @@ public async System.Threading.Tasks.Task> CreatePowerForm // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -606,7 +606,7 @@ public ApiResponse DeletePowerFormWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// /// Task of void - public async System.Threading.Tasks.Task DeletePowerFormAsync(string accountId, string powerFormId) + public async System.Threading.Tasks.Task DeletePowerFormAsync(string accountId, string powerFormId, System.Threading.CancellationToken cancellationToken = default) { await DeletePowerFormAsyncWithHttpInfo(accountId, powerFormId); } @@ -618,7 +618,7 @@ public async System.Threading.Tasks.Task DeletePowerFormAsync(string accountId, /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePowerFormAsyncWithHttpInfo(string accountId, string powerFormId) + public async System.Threading.Tasks.Task> DeletePowerFormAsyncWithHttpInfo(string accountId, string powerFormId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -664,7 +664,7 @@ public async System.Threading.Tasks.Task> DeletePowerFormAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -717,7 +717,7 @@ public ApiResponse DeletePowerFormsWithHttpInfo(string accou /// The external account number (int) or account ID Guid. /// (optional) /// Task of PowerFormsResponse - public async System.Threading.Tasks.Task DeletePowerFormsAsync(string accountId, PowerFormsRequest powerFormsRequest = null) + public async System.Threading.Tasks.Task DeletePowerFormsAsync(string accountId, PowerFormsRequest powerFormsRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeletePowerFormsAsyncWithHttpInfo(accountId, powerFormsRequest); return localVarResponse.Data; @@ -730,7 +730,7 @@ public async System.Threading.Tasks.Task DeletePowerFormsAsy /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (PowerFormsResponse) - public async System.Threading.Tasks.Task> DeletePowerFormsAsyncWithHttpInfo(string accountId, PowerFormsRequest powerFormsRequest = null) + public async System.Threading.Tasks.Task> DeletePowerFormsAsyncWithHttpInfo(string accountId, PowerFormsRequest powerFormsRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -780,7 +780,7 @@ public async System.Threading.Tasks.Task> Delete // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -832,7 +832,7 @@ public ApiResponse GetPowerFormWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// /// Task of PowerForm - public async System.Threading.Tasks.Task GetPowerFormAsync(string accountId, string powerFormId) + public async System.Threading.Tasks.Task GetPowerFormAsync(string accountId, string powerFormId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPowerFormAsyncWithHttpInfo(accountId, powerFormId); return localVarResponse.Data; @@ -845,7 +845,7 @@ public async System.Threading.Tasks.Task GetPowerFormAsync(string acc /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (PowerForm) - public async System.Threading.Tasks.Task> GetPowerFormAsyncWithHttpInfo(string accountId, string powerFormId) + public async System.Threading.Tasks.Task> GetPowerFormAsyncWithHttpInfo(string accountId, string powerFormId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -891,7 +891,7 @@ public async System.Threading.Tasks.Task> GetPowerFormAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -958,9 +958,9 @@ public ApiResponse GetPowerFormDataWithHttpInfo(stri /// /// Options for modifying the behavior of the function. /// Task of PowerFormsFormDataResponse - public async System.Threading.Tasks.Task GetPowerFormDataAsync(string accountId, string powerFormId, PowerFormsApi.GetPowerFormDataOptions options = null) + public async System.Threading.Tasks.Task GetPowerFormDataAsync(string accountId, string powerFormId, PowerFormsApi.GetPowerFormDataOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetPowerFormDataAsyncWithHttpInfo(accountId, powerFormId, options); + ApiResponse localVarResponse = await GetPowerFormDataAsyncWithHttpInfo(accountId, powerFormId, options, cancellationToken); return localVarResponse.Data; } @@ -972,7 +972,7 @@ public async System.Threading.Tasks.Task GetPowerFor /// /// Options for modifying the behavior of the function. /// Task of ApiResponse (PowerFormsFormDataResponse) - public async System.Threading.Tasks.Task> GetPowerFormDataAsyncWithHttpInfo(string accountId, string powerFormId, PowerFormsApi.GetPowerFormDataOptions options = null) + public async System.Threading.Tasks.Task> GetPowerFormDataAsyncWithHttpInfo(string accountId, string powerFormId, PowerFormsApi.GetPowerFormDataOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1024,7 +1024,7 @@ public async System.Threading.Tasks.Task // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1084,9 +1084,9 @@ public ApiResponse ListPowerFormSendersWithHttpInfo(st /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of PowerFormSendersResponse - public async System.Threading.Tasks.Task ListPowerFormSendersAsync(string accountId, PowerFormsApi.ListPowerFormSendersOptions options = null) + public async System.Threading.Tasks.Task ListPowerFormSendersAsync(string accountId, PowerFormsApi.ListPowerFormSendersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListPowerFormSendersAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListPowerFormSendersAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1097,7 +1097,7 @@ public async System.Threading.Tasks.Task ListPowerForm /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PowerFormSendersResponse) - public async System.Threading.Tasks.Task> ListPowerFormSendersAsyncWithHttpInfo(string accountId, PowerFormsApi.ListPowerFormSendersOptions options = null) + public async System.Threading.Tasks.Task> ListPowerFormSendersAsyncWithHttpInfo(string accountId, PowerFormsApi.ListPowerFormSendersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1143,7 +1143,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1213,9 +1213,9 @@ public ApiResponse ListPowerFormsWithHttpInfo(string account /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of PowerFormsResponse - public async System.Threading.Tasks.Task ListPowerFormsAsync(string accountId, PowerFormsApi.ListPowerFormsOptions options = null) + public async System.Threading.Tasks.Task ListPowerFormsAsync(string accountId, PowerFormsApi.ListPowerFormsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListPowerFormsAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListPowerFormsAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1226,7 +1226,7 @@ public async System.Threading.Tasks.Task ListPowerFormsAsync /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PowerFormsResponse) - public async System.Threading.Tasks.Task> ListPowerFormsAsyncWithHttpInfo(string accountId, PowerFormsApi.ListPowerFormsOptions options = null) + public async System.Threading.Tasks.Task> ListPowerFormsAsyncWithHttpInfo(string accountId, PowerFormsApi.ListPowerFormsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1277,7 +1277,7 @@ public async System.Threading.Tasks.Task> ListPo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1332,7 +1332,7 @@ public ApiResponse UpdatePowerFormWithHttpInfo(string accountId, stri /// /// (optional) /// Task of PowerForm - public async System.Threading.Tasks.Task UpdatePowerFormAsync(string accountId, string powerFormId, PowerForm powerForm = null) + public async System.Threading.Tasks.Task UpdatePowerFormAsync(string accountId, string powerFormId, PowerForm powerForm = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdatePowerFormAsyncWithHttpInfo(accountId, powerFormId, powerForm); return localVarResponse.Data; @@ -1346,7 +1346,7 @@ public async System.Threading.Tasks.Task UpdatePowerFormAsync(string /// /// (optional) /// Task of ApiResponse (PowerForm) - public async System.Threading.Tasks.Task> UpdatePowerFormAsyncWithHttpInfo(string accountId, string powerFormId, PowerForm powerForm = null) + public async System.Threading.Tasks.Task> UpdatePowerFormAsyncWithHttpInfo(string accountId, string powerFormId, PowerForm powerForm = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1400,7 +1400,7 @@ public async System.Threading.Tasks.Task> UpdatePowerForm // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/SigningGroupsApi.cs b/sdk/src/DocuSign.eSign/Api/SigningGroupsApi.cs index db94eedd6..5d73d1130 100644 --- a/sdk/src/DocuSign.eSign/Api/SigningGroupsApi.cs +++ b/sdk/src/DocuSign.eSign/Api/SigningGroupsApi.cs @@ -542,7 +542,7 @@ public ApiResponse CreateListWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of SigningGroupInformation - public async System.Threading.Tasks.Task CreateListAsync(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task CreateListAsync(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateListAsyncWithHttpInfo(accountId, signingGroupInformation); return localVarResponse.Data; @@ -555,7 +555,7 @@ public async System.Threading.Tasks.Task CreateListAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (SigningGroupInformation) - public async System.Threading.Tasks.Task> CreateListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task> CreateListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -605,7 +605,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -657,7 +657,7 @@ public ApiResponse DeleteListWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of SigningGroupInformation - public async System.Threading.Tasks.Task DeleteListAsync(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task DeleteListAsync(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteListAsyncWithHttpInfo(accountId, signingGroupInformation); return localVarResponse.Data; @@ -670,7 +670,7 @@ public async System.Threading.Tasks.Task DeleteListAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (SigningGroupInformation) - public async System.Threading.Tasks.Task> DeleteListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task> DeleteListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -720,7 +720,7 @@ public async System.Threading.Tasks.Task> D // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -775,7 +775,7 @@ public ApiResponse DeleteUsersWithHttpInfo(string accountId, /// /// (optional) /// Task of SigningGroupUsers - public async System.Threading.Tasks.Task DeleteUsersAsync(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null) + public async System.Threading.Tasks.Task DeleteUsersAsync(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteUsersAsyncWithHttpInfo(accountId, signingGroupId, signingGroupUsers); return localVarResponse.Data; @@ -789,7 +789,7 @@ public async System.Threading.Tasks.Task DeleteUsersAsync(str /// /// (optional) /// Task of ApiResponse (SigningGroupUsers) - public async System.Threading.Tasks.Task> DeleteUsersAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null) + public async System.Threading.Tasks.Task> DeleteUsersAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -843,7 +843,7 @@ public async System.Threading.Tasks.Task> DeleteU // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -895,7 +895,7 @@ public ApiResponse GetWithHttpInfo(string accountId, string signin /// The external account number (int) or account ID Guid. /// /// Task of SigningGroup - public async System.Threading.Tasks.Task GetAsync(string accountId, string signingGroupId) + public async System.Threading.Tasks.Task GetAsync(string accountId, string signingGroupId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetAsyncWithHttpInfo(accountId, signingGroupId); return localVarResponse.Data; @@ -908,7 +908,7 @@ public async System.Threading.Tasks.Task GetAsync(string accountId /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (SigningGroup) - public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string signingGroupId) + public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string signingGroupId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -954,7 +954,7 @@ public async System.Threading.Tasks.Task> GetAsyncWith // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1016,9 +1016,9 @@ public ApiResponse ListWithHttpInfo(string accountId, S /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of SigningGroupInformation - public async System.Threading.Tasks.Task ListAsync(string accountId, SigningGroupsApi.ListOptions options = null) + public async System.Threading.Tasks.Task ListAsync(string accountId, SigningGroupsApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -1029,7 +1029,7 @@ public async System.Threading.Tasks.Task ListAsync(stri /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (SigningGroupInformation) - public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, SigningGroupsApi.ListOptions options = null) + public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, SigningGroupsApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1076,7 +1076,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1128,7 +1128,7 @@ public ApiResponse ListUsersWithHttpInfo(string accountId, st /// The external account number (int) or account ID Guid. /// /// Task of SigningGroupUsers - public async System.Threading.Tasks.Task ListUsersAsync(string accountId, string signingGroupId) + public async System.Threading.Tasks.Task ListUsersAsync(string accountId, string signingGroupId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListUsersAsyncWithHttpInfo(accountId, signingGroupId); return localVarResponse.Data; @@ -1141,7 +1141,7 @@ public async System.Threading.Tasks.Task ListUsersAsync(strin /// The external account number (int) or account ID Guid. /// /// Task of ApiResponse (SigningGroupUsers) - public async System.Threading.Tasks.Task> ListUsersAsyncWithHttpInfo(string accountId, string signingGroupId) + public async System.Threading.Tasks.Task> ListUsersAsyncWithHttpInfo(string accountId, string signingGroupId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1187,7 +1187,7 @@ public async System.Threading.Tasks.Task> ListUse // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1242,7 +1242,7 @@ public ApiResponse UpdateWithHttpInfo(string accountId, string sig /// /// (optional) /// Task of SigningGroup - public async System.Threading.Tasks.Task UpdateAsync(string accountId, string signingGroupId, SigningGroup signingGroup = null) + public async System.Threading.Tasks.Task UpdateAsync(string accountId, string signingGroupId, SigningGroup signingGroup = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateAsyncWithHttpInfo(accountId, signingGroupId, signingGroup); return localVarResponse.Data; @@ -1256,7 +1256,7 @@ public async System.Threading.Tasks.Task UpdateAsync(string accoun /// /// (optional) /// Task of ApiResponse (SigningGroup) - public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroup signingGroup = null) + public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroup signingGroup = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1310,7 +1310,7 @@ public async System.Threading.Tasks.Task> UpdateAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1362,7 +1362,7 @@ public ApiResponse UpdateListWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of SigningGroupInformation - public async System.Threading.Tasks.Task UpdateListAsync(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task UpdateListAsync(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateListAsyncWithHttpInfo(accountId, signingGroupInformation); return localVarResponse.Data; @@ -1375,7 +1375,7 @@ public async System.Threading.Tasks.Task UpdateListAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (SigningGroupInformation) - public async System.Threading.Tasks.Task> UpdateListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null) + public async System.Threading.Tasks.Task> UpdateListAsyncWithHttpInfo(string accountId, SigningGroupInformation signingGroupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1425,7 +1425,7 @@ public async System.Threading.Tasks.Task> U // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1480,7 +1480,7 @@ public ApiResponse UpdateUsersWithHttpInfo(string accountId, /// /// (optional) /// Task of SigningGroupUsers - public async System.Threading.Tasks.Task UpdateUsersAsync(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null) + public async System.Threading.Tasks.Task UpdateUsersAsync(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateUsersAsyncWithHttpInfo(accountId, signingGroupId, signingGroupUsers); return localVarResponse.Data; @@ -1494,7 +1494,7 @@ public async System.Threading.Tasks.Task UpdateUsersAsync(str /// /// (optional) /// Task of ApiResponse (SigningGroupUsers) - public async System.Threading.Tasks.Task> UpdateUsersAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null) + public async System.Threading.Tasks.Task> UpdateUsersAsyncWithHttpInfo(string accountId, string signingGroupId, SigningGroupUsers signingGroupUsers = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1548,7 +1548,7 @@ public async System.Threading.Tasks.Task> UpdateU // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/TemplatesApi.cs b/sdk/src/DocuSign.eSign/Api/TemplatesApi.cs index ae684b7b8..ff83514f5 100644 --- a/sdk/src/DocuSign.eSign/Api/TemplatesApi.cs +++ b/sdk/src/DocuSign.eSign/Api/TemplatesApi.cs @@ -2761,7 +2761,7 @@ public ApiResponse CreateCustomFieldsWithHttpInfo(string accountId /// The ID of the template being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task CreateCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task CreateCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateCustomFieldsAsyncWithHttpInfo(accountId, templateId, templateCustomFields); return localVarResponse.Data; @@ -2775,7 +2775,7 @@ public async System.Threading.Tasks.Task CreateCustomFieldsAsync(s /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> CreateCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task> CreateCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2829,7 +2829,7 @@ public async System.Threading.Tasks.Task> CreateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2887,7 +2887,7 @@ public ApiResponse CreateDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task CreateDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task CreateDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateDocumentFieldsAsyncWithHttpInfo(accountId, templateId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -2902,7 +2902,7 @@ public async System.Threading.Tasks.Task CreateDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> CreateDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> CreateDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2960,7 +2960,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3015,7 +3015,7 @@ public ApiResponse CreateEditViewWithHttpInfo(string accountId, string /// The ID of the template being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateEditViewAsync(string accountId, string templateId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task CreateEditViewAsync(string accountId, string templateId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateEditViewAsyncWithHttpInfo(accountId, templateId, returnUrlRequest); return localVarResponse.Data; @@ -3029,7 +3029,7 @@ public async System.Threading.Tasks.Task CreateEditViewAsync(string acc /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateEditViewAsyncWithHttpInfo(string accountId, string templateId, ReturnUrlRequest returnUrlRequest = null) + public async System.Threading.Tasks.Task> CreateEditViewAsyncWithHttpInfo(string accountId, string templateId, ReturnUrlRequest returnUrlRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3083,7 +3083,7 @@ public async System.Threading.Tasks.Task> CreateEditViewAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3138,7 +3138,7 @@ public ApiResponse CreateLockWithHttpInfo(string accountId, str /// The ID of the template being accessed. /// (optional) /// Task of LockInformation - public async System.Threading.Tasks.Task CreateLockAsync(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task CreateLockAsync(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateLockAsyncWithHttpInfo(accountId, templateId, lockRequest); return localVarResponse.Data; @@ -3152,7 +3152,7 @@ public async System.Threading.Tasks.Task CreateLockAsync(string /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> CreateLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task> CreateLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3206,7 +3206,7 @@ public async System.Threading.Tasks.Task> CreateLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3272,9 +3272,9 @@ public ApiResponse CreateRecipientsWithHttpInfo(string accountId, st /// (optional) /// Options for modifying the behavior of the function. /// Task of Recipients - public async System.Threading.Tasks.Task CreateRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.CreateRecipientsOptions options = null) + public async System.Threading.Tasks.Task CreateRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.CreateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await CreateRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients, options); + ApiResponse localVarResponse = await CreateRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients, options, cancellationToken); return localVarResponse.Data; } @@ -3287,7 +3287,7 @@ public async System.Threading.Tasks.Task CreateRecipientsAsync(strin /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> CreateRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.CreateRecipientsOptions options = null) + public async System.Threading.Tasks.Task> CreateRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.CreateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3345,7 +3345,7 @@ public async System.Threading.Tasks.Task> CreateRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3403,7 +3403,7 @@ public ApiResponse CreateTabsWithHttpInfo(string accountId, string templat /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTabsAsyncWithHttpInfo(accountId, templateId, recipientId, templateTabs); return localVarResponse.Data; @@ -3418,7 +3418,7 @@ public async System.Threading.Tasks.Task CreateTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> CreateTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> CreateTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3476,7 +3476,7 @@ public async System.Threading.Tasks.Task> CreateTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3528,7 +3528,7 @@ public ApiResponse CreateTemplateWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// (optional) /// Task of TemplateSummary - public async System.Threading.Tasks.Task CreateTemplateAsync(string accountId, EnvelopeTemplate envelopeTemplate = null) + public async System.Threading.Tasks.Task CreateTemplateAsync(string accountId, EnvelopeTemplate envelopeTemplate = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateAsyncWithHttpInfo(accountId, envelopeTemplate); return localVarResponse.Data; @@ -3541,7 +3541,7 @@ public async System.Threading.Tasks.Task CreateTemplateAsync(st /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (TemplateSummary) - public async System.Threading.Tasks.Task> CreateTemplateAsyncWithHttpInfo(string accountId, EnvelopeTemplate envelopeTemplate = null) + public async System.Threading.Tasks.Task> CreateTemplateAsyncWithHttpInfo(string accountId, EnvelopeTemplate envelopeTemplate = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3591,7 +3591,7 @@ public async System.Threading.Tasks.Task> CreateTem // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3649,7 +3649,7 @@ public ApiResponse CreateTemplateDocumentResponsiveHtml /// The ID of the document being accessed. /// (optional) /// Task of DocumentHtmlDefinitions - public async System.Threading.Tasks.Task CreateTemplateDocumentResponsiveHtmlPreviewAsync(string accountId, string templateId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task CreateTemplateDocumentResponsiveHtmlPreviewAsync(string accountId, string templateId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(accountId, templateId, documentId, documentHtmlDefinition); return localVarResponse.Data; @@ -3664,7 +3664,7 @@ public async System.Threading.Tasks.Task CreateTemplate /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentHtmlDefinitions) - public async System.Threading.Tasks.Task> CreateTemplateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task> CreateTemplateDocumentResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3722,7 +3722,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3780,7 +3780,7 @@ public ApiResponse CreateTemplateDocumentTabsWithHttpInfo(string accountId /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task CreateTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task CreateTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateDocumentTabsAsyncWithHttpInfo(accountId, templateId, documentId, templateTabs); return localVarResponse.Data; @@ -3795,7 +3795,7 @@ public async System.Threading.Tasks.Task CreateTemplateDocumentTabsAsync(s /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> CreateTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> CreateTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3853,7 +3853,7 @@ public async System.Threading.Tasks.Task> CreateTemplateDocume // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3908,7 +3908,7 @@ public ApiResponse CreateTemplateRecipientPreviewWithHttpInfo(string ac /// The ID of the template being accessed. /// (optional) /// Task of ViewUrl - public async System.Threading.Tasks.Task CreateTemplateRecipientPreviewAsync(string accountId, string templateId, RecipientPreviewRequest recipientPreviewRequest = null) + public async System.Threading.Tasks.Task CreateTemplateRecipientPreviewAsync(string accountId, string templateId, RecipientPreviewRequest recipientPreviewRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateRecipientPreviewAsyncWithHttpInfo(accountId, templateId, recipientPreviewRequest); return localVarResponse.Data; @@ -3922,7 +3922,7 @@ public async System.Threading.Tasks.Task CreateTemplateRecipientPreview /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (ViewUrl) - public async System.Threading.Tasks.Task> CreateTemplateRecipientPreviewAsyncWithHttpInfo(string accountId, string templateId, RecipientPreviewRequest recipientPreviewRequest = null) + public async System.Threading.Tasks.Task> CreateTemplateRecipientPreviewAsyncWithHttpInfo(string accountId, string templateId, RecipientPreviewRequest recipientPreviewRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3976,7 +3976,7 @@ public async System.Threading.Tasks.Task> CreateTemplateRec // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4031,7 +4031,7 @@ public ApiResponse CreateTemplateResponsiveHtmlPreviewW /// The ID of the template being accessed. /// (optional) /// Task of DocumentHtmlDefinitions - public async System.Threading.Tasks.Task CreateTemplateResponsiveHtmlPreviewAsync(string accountId, string templateId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task CreateTemplateResponsiveHtmlPreviewAsync(string accountId, string templateId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateTemplateResponsiveHtmlPreviewAsyncWithHttpInfo(accountId, templateId, documentHtmlDefinition); return localVarResponse.Data; @@ -4045,7 +4045,7 @@ public async System.Threading.Tasks.Task CreateTemplate /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (DocumentHtmlDefinitions) - public async System.Threading.Tasks.Task> CreateTemplateResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string templateId, DocumentHtmlDefinition documentHtmlDefinition = null) + public async System.Threading.Tasks.Task> CreateTemplateResponsiveHtmlPreviewAsyncWithHttpInfo(string accountId, string templateId, DocumentHtmlDefinition documentHtmlDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4099,7 +4099,7 @@ public async System.Threading.Tasks.Task> C // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4154,7 +4154,7 @@ public ApiResponse DeleteBulkRecipientsWithHttpInf /// The ID of the template being accessed. /// The ID of the recipient being accessed. /// Task of BulkRecipientsUpdateResponse - public async System.Threading.Tasks.Task DeleteBulkRecipientsAsync(string accountId, string templateId, string recipientId) + public async System.Threading.Tasks.Task DeleteBulkRecipientsAsync(string accountId, string templateId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteBulkRecipientsAsyncWithHttpInfo(accountId, templateId, recipientId); return localVarResponse.Data; @@ -4168,7 +4168,7 @@ public async System.Threading.Tasks.Task DeleteBul /// The ID of the template being accessed. /// The ID of the recipient being accessed. /// Task of ApiResponse (BulkRecipientsUpdateResponse) - public async System.Threading.Tasks.Task> DeleteBulkRecipientsAsyncWithHttpInfo(string accountId, string templateId, string recipientId) + public async System.Threading.Tasks.Task> DeleteBulkRecipientsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4218,7 +4218,7 @@ public async System.Threading.Tasks.Task DeleteCustomFieldsWithHttpInfo(string accountId /// The ID of the template being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteCustomFieldsAsyncWithHttpInfo(accountId, templateId, templateCustomFields); return localVarResponse.Data; @@ -4287,7 +4287,7 @@ public async System.Threading.Tasks.Task DeleteCustomFieldsAsync(s /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> DeleteCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task> DeleteCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4341,7 +4341,7 @@ public async System.Threading.Tasks.Task> DeleteCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4399,7 +4399,7 @@ public ApiResponse DeleteDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task DeleteDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task DeleteDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteDocumentFieldsAsyncWithHttpInfo(accountId, templateId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -4414,7 +4414,7 @@ public async System.Threading.Tasks.Task DeleteDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> DeleteDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> DeleteDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4472,7 +4472,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4532,7 +4532,7 @@ public ApiResponse DeleteDocumentPageWithHttpInfo(string accountId, stri /// The page number being accessed. /// (optional) /// Task of void - public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { await DeleteDocumentPageAsyncWithHttpInfo(accountId, templateId, documentId, pageNumber, pageRequest); } @@ -4547,7 +4547,7 @@ public async System.Threading.Tasks.Task DeleteDocumentPageAsync(string accountI /// The page number being accessed. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteDocumentPageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task> DeleteDocumentPageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4609,7 +4609,7 @@ public async System.Threading.Tasks.Task> DeleteDocumentPage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4665,7 +4665,7 @@ public ApiResponse DeleteDocumentsWithHttpInfo(string a /// The ID of the template being accessed. /// (optional) /// Task of TemplateDocumentsResult - public async System.Threading.Tasks.Task DeleteDocumentsAsync(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task DeleteDocumentsAsync(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteDocumentsAsyncWithHttpInfo(accountId, templateId, envelopeDefinition); return localVarResponse.Data; @@ -4679,7 +4679,7 @@ public async System.Threading.Tasks.Task DeleteDocument /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (TemplateDocumentsResult) - public async System.Threading.Tasks.Task> DeleteDocumentsAsyncWithHttpInfo(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task> DeleteDocumentsAsyncWithHttpInfo(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4733,7 +4733,7 @@ public async System.Threading.Tasks.Task> D // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4791,7 +4791,7 @@ public ApiResponse DeleteGroupShareWithHttpInfo(string account /// Currently, the only defined part is **groups**. /// (optional) /// Task of GroupInformation - public async System.Threading.Tasks.Task DeleteGroupShareAsync(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task DeleteGroupShareAsync(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteGroupShareAsyncWithHttpInfo(accountId, templateId, templatePart, groupInformation); return localVarResponse.Data; @@ -4806,7 +4806,7 @@ public async System.Threading.Tasks.Task DeleteGroupShareAsync /// Currently, the only defined part is **groups**. /// (optional) /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> DeleteGroupShareAsyncWithHttpInfo(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task> DeleteGroupShareAsyncWithHttpInfo(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4864,7 +4864,7 @@ public async System.Threading.Tasks.Task> DeleteGr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4919,7 +4919,7 @@ public ApiResponse DeleteLockWithHttpInfo(string accountId, str /// The ID of the template being accessed. /// (optional) /// Task of LockInformation - public async System.Threading.Tasks.Task DeleteLockAsync(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task DeleteLockAsync(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteLockAsyncWithHttpInfo(accountId, templateId, lockRequest); return localVarResponse.Data; @@ -4933,7 +4933,7 @@ public async System.Threading.Tasks.Task DeleteLockAsync(string /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> DeleteLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task> DeleteLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4987,7 +4987,7 @@ public async System.Threading.Tasks.Task> DeleteLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5045,7 +5045,7 @@ public ApiResponse DeleteRecipientWithHttpInfo(string accountId, str /// The ID of the recipient being accessed. /// (optional) /// Task of Recipients - public async System.Threading.Tasks.Task DeleteRecipientAsync(string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients = null) + public async System.Threading.Tasks.Task DeleteRecipientAsync(string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteRecipientAsyncWithHttpInfo(accountId, templateId, recipientId, templateRecipients); return localVarResponse.Data; @@ -5060,7 +5060,7 @@ public async System.Threading.Tasks.Task DeleteRecipientAsync(string /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> DeleteRecipientAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients = null) + public async System.Threading.Tasks.Task> DeleteRecipientAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5118,7 +5118,7 @@ public async System.Threading.Tasks.Task> DeleteRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5173,7 +5173,7 @@ public ApiResponse DeleteRecipientsWithHttpInfo(string accountId, st /// The ID of the template being accessed. /// (optional) /// Task of Recipients - public async System.Threading.Tasks.Task DeleteRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null) + public async System.Threading.Tasks.Task DeleteRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients); return localVarResponse.Data; @@ -5187,7 +5187,7 @@ public async System.Threading.Tasks.Task DeleteRecipientsAsync(strin /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> DeleteRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null) + public async System.Threading.Tasks.Task> DeleteRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5241,7 +5241,7 @@ public async System.Threading.Tasks.Task> DeleteRecipien // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5299,7 +5299,7 @@ public ApiResponse DeleteTabsWithHttpInfo(string accountId, string templat /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteTabsAsyncWithHttpInfo(accountId, templateId, recipientId, templateTabs); return localVarResponse.Data; @@ -5314,7 +5314,7 @@ public async System.Threading.Tasks.Task DeleteTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> DeleteTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> DeleteTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5372,7 +5372,7 @@ public async System.Threading.Tasks.Task> DeleteTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5430,7 +5430,7 @@ public ApiResponse DeleteTemplateDocumentTabsWithHttpInfo(string accountId /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task DeleteTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task DeleteTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteTemplateDocumentTabsAsyncWithHttpInfo(accountId, templateId, documentId, templateTabs); return localVarResponse.Data; @@ -5445,7 +5445,7 @@ public async System.Threading.Tasks.Task DeleteTemplateDocumentTabsAsync(s /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> DeleteTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> DeleteTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5503,7 +5503,7 @@ public async System.Threading.Tasks.Task> DeleteTemplateDocume // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5566,9 +5566,9 @@ public ApiResponse GetWithHttpInfo(string accountId, string te /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of EnvelopeTemplate - public async System.Threading.Tasks.Task GetAsync(string accountId, string templateId, TemplatesApi.GetOptions options = null) + public async System.Threading.Tasks.Task GetAsync(string accountId, string templateId, TemplatesApi.GetOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetAsyncWithHttpInfo(accountId, templateId, options); + ApiResponse localVarResponse = await GetAsyncWithHttpInfo(accountId, templateId, options, cancellationToken); return localVarResponse.Data; } @@ -5580,7 +5580,7 @@ public async System.Threading.Tasks.Task GetAsync(string accou /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeTemplate) - public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.GetOptions options = null) + public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.GetOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5630,7 +5630,7 @@ public async System.Threading.Tasks.Task> GetAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5698,9 +5698,9 @@ public System.IO.Stream GetDocument(string accountId, string templateId, string /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetDocumentAsync(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentOptions options = null) + public async System.Threading.Tasks.Task GetDocumentAsync(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentAsyncWithHttpInfo(accountId, templateId, documentId, options); + ApiResponse localVarResponse = await GetDocumentAsyncWithHttpInfo(accountId, templateId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -5713,7 +5713,7 @@ public System.IO.Stream GetDocument(string accountId, string templateId, string /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetDocumentAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5768,7 +5768,7 @@ public System.IO.Stream GetDocument(string accountId, string templateId, string // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5843,9 +5843,9 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string templateId /// The page number being accessed. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetDocumentPageImageAsync(string accountId, string templateId, string documentId, string pageNumber, TemplatesApi.GetDocumentPageImageOptions options = null) + public async System.Threading.Tasks.Task GetDocumentPageImageAsync(string accountId, string templateId, string documentId, string pageNumber, TemplatesApi.GetDocumentPageImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentPageImageAsyncWithHttpInfo(accountId, templateId, documentId, pageNumber, options); + ApiResponse localVarResponse = await GetDocumentPageImageAsyncWithHttpInfo(accountId, templateId, documentId, pageNumber, options, cancellationToken); return localVarResponse.Data; } @@ -5859,7 +5859,7 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string templateId /// The page number being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetDocumentPageImageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, TemplatesApi.GetDocumentPageImageOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentPageImageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, TemplatesApi.GetDocumentPageImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5920,7 +5920,7 @@ public System.IO.Stream GetDocumentPageImage(string accountId, string templateId // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5986,9 +5986,9 @@ public ApiResponse GetDocumentTabsWithHttpInfo(string accountId, string te /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of Tabs - public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentTabsOptions options = null) + public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDocumentTabsAsyncWithHttpInfo(accountId, templateId, documentId, options); + ApiResponse localVarResponse = await GetDocumentTabsAsyncWithHttpInfo(accountId, templateId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -6001,7 +6001,7 @@ public async System.Threading.Tasks.Task GetDocumentTabsAsync(string accou /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> GetDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentTabsOptions options = null) + public async System.Threading.Tasks.Task> GetDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetDocumentTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6055,7 +6055,7 @@ public async System.Threading.Tasks.Task> GetDocumentTabsAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6107,7 +6107,7 @@ public ApiResponse GetLockWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of LockInformation - public async System.Threading.Tasks.Task GetLockAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task GetLockAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetLockAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -6120,7 +6120,7 @@ public async System.Threading.Tasks.Task GetLockAsync(string ac /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> GetLockAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> GetLockAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6166,7 +6166,7 @@ public async System.Threading.Tasks.Task> GetLockAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6218,7 +6218,7 @@ public ApiResponse GetNotificationSettingsWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of Notification - public async System.Threading.Tasks.Task GetNotificationSettingsAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task GetNotificationSettingsAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetNotificationSettingsAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -6231,7 +6231,7 @@ public async System.Threading.Tasks.Task GetNotificationSettingsAs /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> GetNotificationSettingsAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> GetNotificationSettingsAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6277,7 +6277,7 @@ public async System.Threading.Tasks.Task> GetNotificat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6335,7 +6335,7 @@ public ApiResponse GetPageTabsWithHttpInfo(string accountId, string templa /// The ID of the document being accessed. /// The page number being accessed. /// Task of Tabs - public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId, string templateId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId, string templateId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetPageTabsAsyncWithHttpInfo(accountId, templateId, documentId, pageNumber); return localVarResponse.Data; @@ -6350,7 +6350,7 @@ public async System.Threading.Tasks.Task GetPageTabsAsync(string accountId /// The ID of the document being accessed. /// The page number being accessed. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> GetPageTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber) + public async System.Threading.Tasks.Task> GetPageTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6404,7 +6404,7 @@ public async System.Threading.Tasks.Task> GetPageTabsAsyncWith // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6482,9 +6482,9 @@ public ApiResponse GetPagesWithHttpInfo(string accountId, string tem /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of PageImages - public async System.Threading.Tasks.Task GetPagesAsync(string accountId, string templateId, string documentId, TemplatesApi.GetPagesOptions options = null) + public async System.Threading.Tasks.Task GetPagesAsync(string accountId, string templateId, string documentId, TemplatesApi.GetPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetPagesAsyncWithHttpInfo(accountId, templateId, documentId, options); + ApiResponse localVarResponse = await GetPagesAsyncWithHttpInfo(accountId, templateId, documentId, options, cancellationToken); return localVarResponse.Data; } @@ -6497,7 +6497,7 @@ public async System.Threading.Tasks.Task GetPagesAsync(string accoun /// The ID of the document being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PageImages) - public async System.Threading.Tasks.Task> GetPagesAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetPagesOptions options = null) + public async System.Threading.Tasks.Task> GetPagesAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplatesApi.GetPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6557,7 +6557,7 @@ public async System.Threading.Tasks.Task> GetPagesAsyncW // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6612,7 +6612,7 @@ public ApiResponse GetTemplateDocumentHtmlDefin /// The ID of the template being accessed. /// The ID of the document being accessed. /// Task of DocumentHtmlDefinitionOriginals - public async System.Threading.Tasks.Task GetTemplateDocumentHtmlDefinitionsAsync(string accountId, string templateId, string documentId) + public async System.Threading.Tasks.Task GetTemplateDocumentHtmlDefinitionsAsync(string accountId, string templateId, string documentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateDocumentHtmlDefinitionsAsyncWithHttpInfo(accountId, templateId, documentId); return localVarResponse.Data; @@ -6626,7 +6626,7 @@ public async System.Threading.Tasks.Task GetTem /// The ID of the template being accessed. /// The ID of the document being accessed. /// Task of ApiResponse (DocumentHtmlDefinitionOriginals) - public async System.Threading.Tasks.Task> GetTemplateDocumentHtmlDefinitionsAsyncWithHttpInfo(string accountId, string templateId, string documentId) + public async System.Threading.Tasks.Task> GetTemplateDocumentHtmlDefinitionsAsyncWithHttpInfo(string accountId, string templateId, string documentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6676,7 +6676,7 @@ public async System.Threading.Tasks.Task GetTemplateHtmlDefinitionsWi /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of DocumentHtmlDefinitionOriginals - public async System.Threading.Tasks.Task GetTemplateHtmlDefinitionsAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task GetTemplateHtmlDefinitionsAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetTemplateHtmlDefinitionsAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -6741,7 +6741,7 @@ public async System.Threading.Tasks.Task GetTem /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (DocumentHtmlDefinitionOriginals) - public async System.Threading.Tasks.Task> GetTemplateHtmlDefinitionsAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> GetTemplateHtmlDefinitionsAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6787,7 +6787,7 @@ public async System.Threading.Tasks.Task ListBulkRecipientsWithHttpInfo(string /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of BulkRecipientsResponse - public async System.Threading.Tasks.Task ListBulkRecipientsAsync(string accountId, string templateId, string recipientId, TemplatesApi.ListBulkRecipientsOptions options = null) + public async System.Threading.Tasks.Task ListBulkRecipientsAsync(string accountId, string templateId, string recipientId, TemplatesApi.ListBulkRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListBulkRecipientsAsyncWithHttpInfo(accountId, templateId, recipientId, options); + ApiResponse localVarResponse = await ListBulkRecipientsAsyncWithHttpInfo(accountId, templateId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -6870,7 +6870,7 @@ public async System.Threading.Tasks.Task ListBulkRecipie /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (BulkRecipientsResponse) - public async System.Threading.Tasks.Task> ListBulkRecipientsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplatesApi.ListBulkRecipientsOptions options = null) + public async System.Threading.Tasks.Task> ListBulkRecipientsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplatesApi.ListBulkRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -6925,7 +6925,7 @@ public async System.Threading.Tasks.Task> Li // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -6977,7 +6977,7 @@ public ApiResponse ListCustomFieldsWithHttpInfo(string accountId, /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of CustomFields - public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId, string templateId) + public async System.Threading.Tasks.Task ListCustomFieldsAsync(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListCustomFieldsAsyncWithHttpInfo(accountId, templateId); return localVarResponse.Data; @@ -6990,7 +6990,7 @@ public async System.Threading.Tasks.Task ListCustomFieldsAsync(str /// The external account number (int) or account ID Guid. /// The ID of the template being accessed. /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId, string templateId) + public async System.Threading.Tasks.Task> ListCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7036,7 +7036,7 @@ public async System.Threading.Tasks.Task> ListCustomFi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7091,7 +7091,7 @@ public ApiResponse ListDocumentFieldsWithHttpInfo(str /// The ID of the template being accessed. /// The ID of the document being accessed. /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task ListDocumentFieldsAsync(string accountId, string templateId, string documentId) + public async System.Threading.Tasks.Task ListDocumentFieldsAsync(string accountId, string templateId, string documentId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListDocumentFieldsAsyncWithHttpInfo(accountId, templateId, documentId); return localVarResponse.Data; @@ -7105,7 +7105,7 @@ public async System.Threading.Tasks.Task ListDocument /// The ID of the template being accessed. /// The ID of the document being accessed. /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> ListDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId) + public async System.Threading.Tasks.Task> ListDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7155,7 +7155,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7218,9 +7218,9 @@ public ApiResponse ListDocumentsWithHttpInfo(string acc /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of TemplateDocumentsResult - public async System.Threading.Tasks.Task ListDocumentsAsync(string accountId, string templateId, TemplatesApi.ListDocumentsOptions options = null) + public async System.Threading.Tasks.Task ListDocumentsAsync(string accountId, string templateId, TemplatesApi.ListDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListDocumentsAsyncWithHttpInfo(accountId, templateId, options); + ApiResponse localVarResponse = await ListDocumentsAsyncWithHttpInfo(accountId, templateId, options, cancellationToken); return localVarResponse.Data; } @@ -7232,7 +7232,7 @@ public async System.Threading.Tasks.Task ListDocumentsA /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (TemplateDocumentsResult) - public async System.Threading.Tasks.Task> ListDocumentsAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.ListDocumentsOptions options = null) + public async System.Threading.Tasks.Task> ListDocumentsAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.ListDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7282,7 +7282,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7349,9 +7349,9 @@ public ApiResponse ListRecipientsWithHttpInfo(string accountId, stri /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of Recipients - public async System.Threading.Tasks.Task ListRecipientsAsync(string accountId, string templateId, TemplatesApi.ListRecipientsOptions options = null) + public async System.Threading.Tasks.Task ListRecipientsAsync(string accountId, string templateId, TemplatesApi.ListRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListRecipientsAsyncWithHttpInfo(accountId, templateId, options); + ApiResponse localVarResponse = await ListRecipientsAsyncWithHttpInfo(accountId, templateId, options, cancellationToken); return localVarResponse.Data; } @@ -7363,7 +7363,7 @@ public async System.Threading.Tasks.Task ListRecipientsAsync(string /// The ID of the template being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Recipients) - public async System.Threading.Tasks.Task> ListRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.ListRecipientsOptions options = null) + public async System.Threading.Tasks.Task> ListRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplatesApi.ListRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7415,7 +7415,7 @@ public async System.Threading.Tasks.Task> ListRecipients // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7483,9 +7483,9 @@ public ApiResponse ListTabsWithHttpInfo(string accountId, string templateI /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of Tabs - public async System.Threading.Tasks.Task ListTabsAsync(string accountId, string templateId, string recipientId, TemplatesApi.ListTabsOptions options = null) + public async System.Threading.Tasks.Task ListTabsAsync(string accountId, string templateId, string recipientId, TemplatesApi.ListTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListTabsAsyncWithHttpInfo(accountId, templateId, recipientId, options); + ApiResponse localVarResponse = await ListTabsAsyncWithHttpInfo(accountId, templateId, recipientId, options, cancellationToken); return localVarResponse.Data; } @@ -7498,7 +7498,7 @@ public async System.Threading.Tasks.Task ListTabsAsync(string accountId, s /// The ID of the recipient being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> ListTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplatesApi.ListTabsOptions options = null) + public async System.Threading.Tasks.Task> ListTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplatesApi.ListTabsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7553,7 +7553,7 @@ public async System.Threading.Tasks.Task> ListTabsAsyncWithHtt // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7657,9 +7657,9 @@ public ApiResponse ListTemplatesWithHttpInfo(string acc /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of EnvelopeTemplateResults - public async System.Threading.Tasks.Task ListTemplatesAsync(string accountId, TemplatesApi.ListTemplatesOptions options = null) + public async System.Threading.Tasks.Task ListTemplatesAsync(string accountId, TemplatesApi.ListTemplatesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListTemplatesAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListTemplatesAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -7670,7 +7670,7 @@ public async System.Threading.Tasks.Task ListTemplatesA /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeTemplateResults) - public async System.Threading.Tasks.Task> ListTemplatesAsyncWithHttpInfo(string accountId, TemplatesApi.ListTemplatesOptions options = null) + public async System.Threading.Tasks.Task> ListTemplatesAsyncWithHttpInfo(string accountId, TemplatesApi.ListTemplatesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7738,7 +7738,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7798,7 +7798,7 @@ public ApiResponse RotateDocumentPageWithHttpInfo(string accountId, stri /// The page number being accessed. /// (optional) /// Task of void - public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { await RotateDocumentPageAsyncWithHttpInfo(accountId, templateId, documentId, pageNumber, pageRequest); } @@ -7813,7 +7813,7 @@ public async System.Threading.Tasks.Task RotateDocumentPageAsync(string accountI /// The page number being accessed. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> RotateDocumentPageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null) + public async System.Threading.Tasks.Task> RotateDocumentPageAsyncWithHttpInfo(string accountId, string templateId, string documentId, string pageNumber, PageRequest pageRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7875,7 +7875,7 @@ public async System.Threading.Tasks.Task> RotateDocumentPage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -7931,7 +7931,7 @@ public ApiResponse UpdateWithHttpInfo(string accountId, s /// The ID of the template being accessed. /// (optional) /// Task of TemplateUpdateSummary - public async System.Threading.Tasks.Task UpdateAsync(string accountId, string templateId, EnvelopeTemplate envelopeTemplate = null) + public async System.Threading.Tasks.Task UpdateAsync(string accountId, string templateId, EnvelopeTemplate envelopeTemplate = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateAsyncWithHttpInfo(accountId, templateId, envelopeTemplate); return localVarResponse.Data; @@ -7945,7 +7945,7 @@ public async System.Threading.Tasks.Task UpdateAsync(stri /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (TemplateUpdateSummary) - public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string templateId, EnvelopeTemplate envelopeTemplate = null) + public async System.Threading.Tasks.Task> UpdateAsyncWithHttpInfo(string accountId, string templateId, EnvelopeTemplate envelopeTemplate = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -7999,7 +7999,7 @@ public async System.Threading.Tasks.Task> Upd // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8054,7 +8054,7 @@ public ApiResponse UpdateCustomFieldsWithHttpInfo(string accountId /// The ID of the template being accessed. /// (optional) /// Task of CustomFields - public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateCustomFieldsAsyncWithHttpInfo(accountId, templateId, templateCustomFields); return localVarResponse.Data; @@ -8068,7 +8068,7 @@ public async System.Threading.Tasks.Task UpdateCustomFieldsAsync(s /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (CustomFields) - public async System.Threading.Tasks.Task> UpdateCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null) + public async System.Threading.Tasks.Task> UpdateCustomFieldsAsyncWithHttpInfo(string accountId, string templateId, TemplateCustomFields templateCustomFields = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8122,7 +8122,7 @@ public async System.Threading.Tasks.Task> UpdateCustom // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8191,9 +8191,9 @@ public ApiResponse UpdateDocumentWithHttpInfo(string accountId /// (optional) /// Options for modifying the behavior of the function. /// Task of EnvelopeDocument - public async System.Threading.Tasks.Task UpdateDocumentAsync(string accountId, string templateId, string documentId, EnvelopeDefinition envelopeDefinition = null, TemplatesApi.UpdateDocumentOptions options = null) + public async System.Threading.Tasks.Task UpdateDocumentAsync(string accountId, string templateId, string documentId, EnvelopeDefinition envelopeDefinition = null, TemplatesApi.UpdateDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateDocumentAsyncWithHttpInfo(accountId, templateId, documentId, envelopeDefinition, options); + ApiResponse localVarResponse = await UpdateDocumentAsyncWithHttpInfo(accountId, templateId, documentId, envelopeDefinition, options, cancellationToken); return localVarResponse.Data; } @@ -8207,7 +8207,7 @@ public async System.Threading.Tasks.Task UpdateDocumentAsync(s /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (EnvelopeDocument) - public async System.Threading.Tasks.Task> UpdateDocumentAsyncWithHttpInfo(string accountId, string templateId, string documentId, EnvelopeDefinition envelopeDefinition = null, TemplatesApi.UpdateDocumentOptions options = null) + public async System.Threading.Tasks.Task> UpdateDocumentAsyncWithHttpInfo(string accountId, string templateId, string documentId, EnvelopeDefinition envelopeDefinition = null, TemplatesApi.UpdateDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8269,7 +8269,7 @@ public async System.Threading.Tasks.Task> UpdateDo // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8327,7 +8327,7 @@ public ApiResponse UpdateDocumentFieldsWithHttpInfo(s /// The ID of the document being accessed. /// (optional) /// Task of DocumentFieldsInformation - public async System.Threading.Tasks.Task UpdateDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task UpdateDocumentFieldsAsync(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentFieldsAsyncWithHttpInfo(accountId, templateId, documentId, documentFieldsInformation); return localVarResponse.Data; @@ -8342,7 +8342,7 @@ public async System.Threading.Tasks.Task UpdateDocume /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (DocumentFieldsInformation) - public async System.Threading.Tasks.Task> UpdateDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null) + public async System.Threading.Tasks.Task> UpdateDocumentFieldsAsyncWithHttpInfo(string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8400,7 +8400,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8455,7 +8455,7 @@ public ApiResponse UpdateDocumentsWithHttpInfo(string a /// The ID of the template being accessed. /// (optional) /// Task of TemplateDocumentsResult - public async System.Threading.Tasks.Task UpdateDocumentsAsync(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task UpdateDocumentsAsync(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateDocumentsAsyncWithHttpInfo(accountId, templateId, envelopeDefinition); return localVarResponse.Data; @@ -8469,7 +8469,7 @@ public async System.Threading.Tasks.Task UpdateDocument /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (TemplateDocumentsResult) - public async System.Threading.Tasks.Task> UpdateDocumentsAsyncWithHttpInfo(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null) + public async System.Threading.Tasks.Task> UpdateDocumentsAsyncWithHttpInfo(string accountId, string templateId, EnvelopeDefinition envelopeDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8523,7 +8523,7 @@ public async System.Threading.Tasks.Task> U // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8581,7 +8581,7 @@ public ApiResponse UpdateGroupShareWithHttpInfo(string account /// Currently, the only defined part is **groups**. /// (optional) /// Task of GroupInformation - public async System.Threading.Tasks.Task UpdateGroupShareAsync(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task UpdateGroupShareAsync(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateGroupShareAsyncWithHttpInfo(accountId, templateId, templatePart, groupInformation); return localVarResponse.Data; @@ -8596,7 +8596,7 @@ public async System.Threading.Tasks.Task UpdateGroupShareAsync /// Currently, the only defined part is **groups**. /// (optional) /// Task of ApiResponse (GroupInformation) - public async System.Threading.Tasks.Task> UpdateGroupShareAsyncWithHttpInfo(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null) + public async System.Threading.Tasks.Task> UpdateGroupShareAsyncWithHttpInfo(string accountId, string templateId, string templatePart, GroupInformation groupInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8654,7 +8654,7 @@ public async System.Threading.Tasks.Task> UpdateGr // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8709,7 +8709,7 @@ public ApiResponse UpdateLockWithHttpInfo(string accountId, str /// The ID of the template being accessed. /// (optional) /// Task of LockInformation - public async System.Threading.Tasks.Task UpdateLockAsync(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task UpdateLockAsync(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateLockAsyncWithHttpInfo(accountId, templateId, lockRequest); return localVarResponse.Data; @@ -8723,7 +8723,7 @@ public async System.Threading.Tasks.Task UpdateLockAsync(string /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (LockInformation) - public async System.Threading.Tasks.Task> UpdateLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null) + public async System.Threading.Tasks.Task> UpdateLockAsyncWithHttpInfo(string accountId, string templateId, LockRequest lockRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8777,7 +8777,7 @@ public async System.Threading.Tasks.Task> UpdateLoc // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8832,7 +8832,7 @@ public ApiResponse UpdateNotificationSettingsWithHttpInfo(string a /// The ID of the template being accessed. /// (optional) /// Task of Notification - public async System.Threading.Tasks.Task UpdateNotificationSettingsAsync(string accountId, string templateId, TemplateNotificationRequest templateNotificationRequest = null) + public async System.Threading.Tasks.Task UpdateNotificationSettingsAsync(string accountId, string templateId, TemplateNotificationRequest templateNotificationRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateNotificationSettingsAsyncWithHttpInfo(accountId, templateId, templateNotificationRequest); return localVarResponse.Data; @@ -8846,7 +8846,7 @@ public async System.Threading.Tasks.Task UpdateNotificationSetting /// The ID of the template being accessed. /// (optional) /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> UpdateNotificationSettingsAsyncWithHttpInfo(string accountId, string templateId, TemplateNotificationRequest templateNotificationRequest = null) + public async System.Threading.Tasks.Task> UpdateNotificationSettingsAsyncWithHttpInfo(string accountId, string templateId, TemplateNotificationRequest templateNotificationRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -8900,7 +8900,7 @@ public async System.Threading.Tasks.Task> UpdateNotifi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -8966,9 +8966,9 @@ public ApiResponse UpdateRecipientsWithHttpInfo(string /// (optional) /// Options for modifying the behavior of the function. /// Task of RecipientsUpdateSummary - public async System.Threading.Tasks.Task UpdateRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.UpdateRecipientsOptions options = null) + public async System.Threading.Tasks.Task UpdateRecipientsAsync(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.UpdateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients, options); + ApiResponse localVarResponse = await UpdateRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients, options, cancellationToken); return localVarResponse.Data; } @@ -8981,7 +8981,7 @@ public async System.Threading.Tasks.Task UpdateRecipien /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (RecipientsUpdateSummary) - public async System.Threading.Tasks.Task> UpdateRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.UpdateRecipientsOptions options = null) + public async System.Threading.Tasks.Task> UpdateRecipientsAsyncWithHttpInfo(string accountId, string templateId, TemplateRecipients templateRecipients = null, TemplatesApi.UpdateRecipientsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9039,7 +9039,7 @@ public async System.Threading.Tasks.Task> U // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9097,7 +9097,7 @@ public ApiResponse UpdateTabsWithHttpInfo(string accountId, string templat /// The ID of the recipient being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTabsAsyncWithHttpInfo(accountId, templateId, recipientId, templateTabs); return localVarResponse.Data; @@ -9112,7 +9112,7 @@ public async System.Threading.Tasks.Task UpdateTabsAsync(string accountId, /// The ID of the recipient being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> UpdateTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> UpdateTabsAsyncWithHttpInfo(string accountId, string templateId, string recipientId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9170,7 +9170,7 @@ public async System.Threading.Tasks.Task> UpdateTabsAsyncWithH // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -9228,7 +9228,7 @@ public ApiResponse UpdateTemplateDocumentTabsWithHttpInfo(string accountId /// The ID of the document being accessed. /// (optional) /// Task of Tabs - public async System.Threading.Tasks.Task UpdateTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task UpdateTemplateDocumentTabsAsync(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateTemplateDocumentTabsAsyncWithHttpInfo(accountId, templateId, documentId, templateTabs); return localVarResponse.Data; @@ -9243,7 +9243,7 @@ public async System.Threading.Tasks.Task UpdateTemplateDocumentTabsAsync(s /// The ID of the document being accessed. /// (optional) /// Task of ApiResponse (Tabs) - public async System.Threading.Tasks.Task> UpdateTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null) + public async System.Threading.Tasks.Task> UpdateTemplateDocumentTabsAsyncWithHttpInfo(string accountId, string templateId, string documentId, TemplateTabs templateTabs = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -9301,7 +9301,7 @@ public async System.Threading.Tasks.Task> UpdateTemplateDocume // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/TrustServiceProvidersApi.cs b/sdk/src/DocuSign.eSign/Api/TrustServiceProvidersApi.cs index f732d34a0..f8790f426 100644 --- a/sdk/src/DocuSign.eSign/Api/TrustServiceProvidersApi.cs +++ b/sdk/src/DocuSign.eSign/Api/TrustServiceProvidersApi.cs @@ -155,7 +155,7 @@ public ApiResponse GetSealProvidersWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of AccountSeals - public async System.Threading.Tasks.Task GetSealProvidersAsync(string accountId) + public async System.Threading.Tasks.Task GetSealProvidersAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetSealProvidersAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -167,7 +167,7 @@ public async System.Threading.Tasks.Task GetSealProvidersAsync(str /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (AccountSeals) - public async System.Threading.Tasks.Task> GetSealProvidersAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> GetSealProvidersAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -209,7 +209,7 @@ public async System.Threading.Tasks.Task> GetSealProvi // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/UsersApi.cs b/sdk/src/DocuSign.eSign/Api/UsersApi.cs index 8a985228a..454e24516 100644 --- a/sdk/src/DocuSign.eSign/Api/UsersApi.cs +++ b/sdk/src/DocuSign.eSign/Api/UsersApi.cs @@ -1608,7 +1608,7 @@ public ApiResponse CreateWithHttpInfo(string accountId, NewUser /// The external account number (int) or account ID Guid. /// (optional) /// Task of NewUsersSummary - public async System.Threading.Tasks.Task CreateAsync(string accountId, NewUsersDefinition newUsersDefinition = null) + public async System.Threading.Tasks.Task CreateAsync(string accountId, NewUsersDefinition newUsersDefinition = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateAsyncWithHttpInfo(accountId, newUsersDefinition); return localVarResponse.Data; @@ -1621,7 +1621,7 @@ public async System.Threading.Tasks.Task CreateAsync(string acc /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (NewUsersSummary) - public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(string accountId, NewUsersDefinition newUsersDefinition = null) + public async System.Threading.Tasks.Task> CreateAsyncWithHttpInfo(string accountId, NewUsersDefinition newUsersDefinition = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1671,7 +1671,7 @@ public async System.Threading.Tasks.Task> CreateAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1726,7 +1726,7 @@ public ApiResponse CreateSignaturesWithHttpInfo(strin /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of UserSignaturesInformation - public async System.Threading.Tasks.Task CreateSignaturesAsync(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null) + public async System.Threading.Tasks.Task CreateSignaturesAsync(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateSignaturesAsyncWithHttpInfo(accountId, userId, userSignaturesInformation); return localVarResponse.Data; @@ -1740,7 +1740,7 @@ public async System.Threading.Tasks.Task CreateSignat /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (UserSignaturesInformation) - public async System.Threading.Tasks.Task> CreateSignaturesAsyncWithHttpInfo(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null) + public async System.Threading.Tasks.Task> CreateSignaturesAsyncWithHttpInfo(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1794,7 +1794,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1857,9 +1857,9 @@ public ApiResponse DeleteWithHttpInfo(string accountId, UserInfoL /// (optional) /// Options for modifying the behavior of the function. /// Task of UsersResponse - public async System.Threading.Tasks.Task DeleteAsync(string accountId, UserInfoList userInfoList = null, UsersApi.DeleteOptions options = null) + public async System.Threading.Tasks.Task DeleteAsync(string accountId, UserInfoList userInfoList = null, UsersApi.DeleteOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await DeleteAsyncWithHttpInfo(accountId, userInfoList, options); + ApiResponse localVarResponse = await DeleteAsyncWithHttpInfo(accountId, userInfoList, options, cancellationToken); return localVarResponse.Data; } @@ -1871,7 +1871,7 @@ public async System.Threading.Tasks.Task DeleteAsync(string accou /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (UsersResponse) - public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId, UserInfoList userInfoList = null, UsersApi.DeleteOptions options = null) + public async System.Threading.Tasks.Task> DeleteAsyncWithHttpInfo(string accountId, UserInfoList userInfoList = null, UsersApi.DeleteOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1925,7 +1925,7 @@ public async System.Threading.Tasks.Task> DeleteAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1977,7 +1977,7 @@ public ApiResponse DeleteContactWithIdWithHttpInfo(string /// The external account number (int) or account ID Guid. /// The unique identifier of a person in the contacts address book. /// Task of ContactUpdateResponse - public async System.Threading.Tasks.Task DeleteContactWithIdAsync(string accountId, string contactId) + public async System.Threading.Tasks.Task DeleteContactWithIdAsync(string accountId, string contactId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteContactWithIdAsyncWithHttpInfo(accountId, contactId); return localVarResponse.Data; @@ -1990,7 +1990,7 @@ public async System.Threading.Tasks.Task DeleteContactWit /// The external account number (int) or account ID Guid. /// The unique identifier of a person in the contacts address book. /// Task of ApiResponse (ContactUpdateResponse) - public async System.Threading.Tasks.Task> DeleteContactWithIdAsyncWithHttpInfo(string accountId, string contactId) + public async System.Threading.Tasks.Task> DeleteContactWithIdAsyncWithHttpInfo(string accountId, string contactId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2036,7 +2036,7 @@ public async System.Threading.Tasks.Task> Del // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2088,7 +2088,7 @@ public ApiResponse DeleteContactsWithHttpInfo(string acco /// The external account number (int) or account ID Guid. /// (optional) /// Task of ContactUpdateResponse - public async System.Threading.Tasks.Task DeleteContactsAsync(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task DeleteContactsAsync(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteContactsAsyncWithHttpInfo(accountId, contactModRequest); return localVarResponse.Data; @@ -2101,7 +2101,7 @@ public async System.Threading.Tasks.Task DeleteContactsAs /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ContactUpdateResponse) - public async System.Threading.Tasks.Task> DeleteContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task> DeleteContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2151,7 +2151,7 @@ public async System.Threading.Tasks.Task> Del // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2206,7 +2206,7 @@ public ApiResponse DeleteCustomSettingsWithHttpInfo(s /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of CustomSettingsInformation - public async System.Threading.Tasks.Task DeleteCustomSettingsAsync(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null) + public async System.Threading.Tasks.Task DeleteCustomSettingsAsync(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteCustomSettingsAsyncWithHttpInfo(accountId, userId, customSettingsInformation); return localVarResponse.Data; @@ -2220,7 +2220,7 @@ public async System.Threading.Tasks.Task DeleteCustom /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (CustomSettingsInformation) - public async System.Threading.Tasks.Task> DeleteCustomSettingsAsyncWithHttpInfo(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null) + public async System.Threading.Tasks.Task> DeleteCustomSettingsAsyncWithHttpInfo(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2274,7 +2274,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2325,7 +2325,7 @@ public ApiResponse DeleteProfileImageWithHttpInfo(string accountId, stri /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of void - public async System.Threading.Tasks.Task DeleteProfileImageAsync(string accountId, string userId) + public async System.Threading.Tasks.Task DeleteProfileImageAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { await DeleteProfileImageAsyncWithHttpInfo(accountId, userId); } @@ -2337,7 +2337,7 @@ public async System.Threading.Tasks.Task DeleteProfileImageAsync(string accountI /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteProfileImageAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> DeleteProfileImageAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2383,7 +2383,7 @@ public async System.Threading.Tasks.Task> DeleteProfileImage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2438,7 +2438,7 @@ public ApiResponse DeleteSignatureWithHttpInfo(string accountId, string /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the signature being accessed. /// Task of void - public async System.Threading.Tasks.Task DeleteSignatureAsync(string accountId, string userId, string signatureId) + public async System.Threading.Tasks.Task DeleteSignatureAsync(string accountId, string userId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { await DeleteSignatureAsyncWithHttpInfo(accountId, userId, signatureId); } @@ -2451,7 +2451,7 @@ public async System.Threading.Tasks.Task DeleteSignatureAsync(string accountId, /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the signature being accessed. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId) + public async System.Threading.Tasks.Task> DeleteSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2501,7 +2501,7 @@ public async System.Threading.Tasks.Task> DeleteSignatureAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2560,7 +2560,7 @@ public ApiResponse DeleteSignatureImageWithHttpInfo(string accoun /// The ID of the signature being accessed. /// One of **signature_image** or **initials_image**. /// Task of UserSignature - public async System.Threading.Tasks.Task DeleteSignatureImageAsync(string accountId, string userId, string signatureId, string imageType) + public async System.Threading.Tasks.Task DeleteSignatureImageAsync(string accountId, string userId, string signatureId, string imageType, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteSignatureImageAsyncWithHttpInfo(accountId, userId, signatureId, imageType); return localVarResponse.Data; @@ -2575,7 +2575,7 @@ public async System.Threading.Tasks.Task DeleteSignatureImageAsyn /// The ID of the signature being accessed. /// One of **signature_image** or **initials_image**. /// Task of ApiResponse (UserSignature) - public async System.Threading.Tasks.Task> DeleteSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType) + public async System.Threading.Tasks.Task> DeleteSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2629,7 +2629,7 @@ public async System.Threading.Tasks.Task> DeleteSigna // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2692,9 +2692,9 @@ public ApiResponse GetContactByIdWithHttpInfo(string account /// The unique identifier of a person in the contacts address book. /// Options for modifying the behavior of the function. /// Task of ContactGetResponse - public async System.Threading.Tasks.Task GetContactByIdAsync(string accountId, string contactId, UsersApi.GetContactByIdOptions options = null) + public async System.Threading.Tasks.Task GetContactByIdAsync(string accountId, string contactId, UsersApi.GetContactByIdOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetContactByIdAsyncWithHttpInfo(accountId, contactId, options); + ApiResponse localVarResponse = await GetContactByIdAsyncWithHttpInfo(accountId, contactId, options, cancellationToken); return localVarResponse.Data; } @@ -2706,7 +2706,7 @@ public async System.Threading.Tasks.Task GetContactByIdAsync /// The unique identifier of a person in the contacts address book. /// Options for modifying the behavior of the function. /// Task of ApiResponse (ContactGetResponse) - public async System.Threading.Tasks.Task> GetContactByIdAsyncWithHttpInfo(string accountId, string contactId, UsersApi.GetContactByIdOptions options = null) + public async System.Threading.Tasks.Task> GetContactByIdAsyncWithHttpInfo(string accountId, string contactId, UsersApi.GetContactByIdOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2756,7 +2756,7 @@ public async System.Threading.Tasks.Task> GetCon // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2821,9 +2821,9 @@ public ApiResponse GetInformationWithHttpInfo(string accountId, /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of UserInformation - public async System.Threading.Tasks.Task GetInformationAsync(string accountId, string userId, UsersApi.GetInformationOptions options = null) + public async System.Threading.Tasks.Task GetInformationAsync(string accountId, string userId, UsersApi.GetInformationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetInformationAsyncWithHttpInfo(accountId, userId, options); + ApiResponse localVarResponse = await GetInformationAsyncWithHttpInfo(accountId, userId, options, cancellationToken); return localVarResponse.Data; } @@ -2835,7 +2835,7 @@ public async System.Threading.Tasks.Task GetInformationAsync(st /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserInformation) - public async System.Threading.Tasks.Task> GetInformationAsyncWithHttpInfo(string accountId, string userId, UsersApi.GetInformationOptions options = null) + public async System.Threading.Tasks.Task> GetInformationAsyncWithHttpInfo(string accountId, string userId, UsersApi.GetInformationOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2886,7 +2886,7 @@ public async System.Threading.Tasks.Task> GetInform // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2938,7 +2938,7 @@ public ApiResponse GetProfileWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of UserProfile - public async System.Threading.Tasks.Task GetProfileAsync(string accountId, string userId) + public async System.Threading.Tasks.Task GetProfileAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetProfileAsyncWithHttpInfo(accountId, userId); return localVarResponse.Data; @@ -2951,7 +2951,7 @@ public async System.Threading.Tasks.Task GetProfileAsync(string acc /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse (UserProfile) - public async System.Threading.Tasks.Task> GetProfileAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> GetProfileAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2997,7 +2997,7 @@ public async System.Threading.Tasks.Task> GetProfileAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3060,9 +3060,9 @@ public System.IO.Stream GetProfileImage(string accountId, string userId, UsersAp /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetProfileImageAsync(string accountId, string userId, UsersApi.GetProfileImageOptions options = null) + public async System.Threading.Tasks.Task GetProfileImageAsync(string accountId, string userId, UsersApi.GetProfileImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetProfileImageAsyncWithHttpInfo(accountId, userId, options); + ApiResponse localVarResponse = await GetProfileImageAsyncWithHttpInfo(accountId, userId, options, cancellationToken); return localVarResponse.Data; } @@ -3074,7 +3074,7 @@ public System.IO.Stream GetProfileImage(string accountId, string userId, UsersAp /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetProfileImageAsyncWithHttpInfo(string accountId, string userId, UsersApi.GetProfileImageOptions options = null) + public async System.Threading.Tasks.Task> GetProfileImageAsyncWithHttpInfo(string accountId, string userId, UsersApi.GetProfileImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3124,7 +3124,7 @@ public System.IO.Stream GetProfileImage(string accountId, string userId, UsersAp // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3176,7 +3176,7 @@ public ApiResponse GetSettingsWithHttpInfo(string accou /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of UserSettingsInformation - public async System.Threading.Tasks.Task GetSettingsAsync(string accountId, string userId) + public async System.Threading.Tasks.Task GetSettingsAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetSettingsAsyncWithHttpInfo(accountId, userId); return localVarResponse.Data; @@ -3189,7 +3189,7 @@ public async System.Threading.Tasks.Task GetSettingsAsy /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse (UserSettingsInformation) - public async System.Threading.Tasks.Task> GetSettingsAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> GetSettingsAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3235,7 +3235,7 @@ public async System.Threading.Tasks.Task> G // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3290,7 +3290,7 @@ public ApiResponse GetSignatureWithHttpInfo(string accountId, str /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the signature being accessed. /// Task of UserSignature - public async System.Threading.Tasks.Task GetSignatureAsync(string accountId, string userId, string signatureId) + public async System.Threading.Tasks.Task GetSignatureAsync(string accountId, string userId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetSignatureAsyncWithHttpInfo(accountId, userId, signatureId); return localVarResponse.Data; @@ -3304,7 +3304,7 @@ public async System.Threading.Tasks.Task GetSignatureAsync(string /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// The ID of the signature being accessed. /// Task of ApiResponse (UserSignature) - public async System.Threading.Tasks.Task> GetSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId) + public async System.Threading.Tasks.Task> GetSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3354,7 +3354,7 @@ public async System.Threading.Tasks.Task> GetSignatur // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3423,9 +3423,9 @@ public System.IO.Stream GetSignatureImage(string accountId, string userId, strin /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetSignatureImageAsync(string accountId, string userId, string signatureId, string imageType, UsersApi.GetSignatureImageOptions options = null) + public async System.Threading.Tasks.Task GetSignatureImageAsync(string accountId, string userId, string signatureId, string imageType, UsersApi.GetSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetSignatureImageAsyncWithHttpInfo(accountId, userId, signatureId, imageType, options); + ApiResponse localVarResponse = await GetSignatureImageAsyncWithHttpInfo(accountId, userId, signatureId, imageType, options, cancellationToken); return localVarResponse.Data; } @@ -3439,7 +3439,7 @@ public System.IO.Stream GetSignatureImage(string accountId, string userId, strin /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType, UsersApi.GetSignatureImageOptions options = null) + public async System.Threading.Tasks.Task> GetSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType, UsersApi.GetSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3497,7 +3497,7 @@ public System.IO.Stream GetSignatureImage(string accountId, string userId, strin // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3581,9 +3581,9 @@ public ApiResponse ListWithHttpInfo(string accountId, Users /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of UserInformationList - public async System.Threading.Tasks.Task ListAsync(string accountId, UsersApi.ListOptions options = null) + public async System.Threading.Tasks.Task ListAsync(string accountId, UsersApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options); + ApiResponse localVarResponse = await ListAsyncWithHttpInfo(accountId, options, cancellationToken); return localVarResponse.Data; } @@ -3594,7 +3594,7 @@ public async System.Threading.Tasks.Task ListAsync(string a /// The external account number (int) or account ID Guid. /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserInformationList) - public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, UsersApi.ListOptions options = null) + public async System.Threading.Tasks.Task> ListAsyncWithHttpInfo(string accountId, UsersApi.ListOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3652,7 +3652,7 @@ public async System.Threading.Tasks.Task> ListA // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3704,7 +3704,7 @@ public ApiResponse ListCustomSettingsWithHttpInfo(str /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of CustomSettingsInformation - public async System.Threading.Tasks.Task ListCustomSettingsAsync(string accountId, string userId) + public async System.Threading.Tasks.Task ListCustomSettingsAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListCustomSettingsAsyncWithHttpInfo(accountId, userId); return localVarResponse.Data; @@ -3717,7 +3717,7 @@ public async System.Threading.Tasks.Task ListCustomSe /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse (CustomSettingsInformation) - public async System.Threading.Tasks.Task> ListCustomSettingsAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> ListCustomSettingsAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3763,7 +3763,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3826,9 +3826,9 @@ public ApiResponse ListSignaturesWithHttpInfo(string /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of UserSignaturesInformation - public async System.Threading.Tasks.Task ListSignaturesAsync(string accountId, string userId, UsersApi.ListSignaturesOptions options = null) + public async System.Threading.Tasks.Task ListSignaturesAsync(string accountId, string userId, UsersApi.ListSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListSignaturesAsyncWithHttpInfo(accountId, userId, options); + ApiResponse localVarResponse = await ListSignaturesAsyncWithHttpInfo(accountId, userId, options, cancellationToken); return localVarResponse.Data; } @@ -3840,7 +3840,7 @@ public async System.Threading.Tasks.Task ListSignatur /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserSignaturesInformation) - public async System.Threading.Tasks.Task> ListSignaturesAsyncWithHttpInfo(string accountId, string userId, UsersApi.ListSignaturesOptions options = null) + public async System.Threading.Tasks.Task> ListSignaturesAsyncWithHttpInfo(string accountId, string userId, UsersApi.ListSignaturesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -3890,7 +3890,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3942,7 +3942,7 @@ public ApiResponse PostContactsWithHttpInfo(string accoun /// The external account number (int) or account ID Guid. /// (optional) /// Task of ContactUpdateResponse - public async System.Threading.Tasks.Task PostContactsAsync(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task PostContactsAsync(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await PostContactsAsyncWithHttpInfo(accountId, contactModRequest); return localVarResponse.Data; @@ -3955,7 +3955,7 @@ public async System.Threading.Tasks.Task PostContactsAsyn /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ContactUpdateResponse) - public async System.Threading.Tasks.Task> PostContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task> PostContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4005,7 +4005,7 @@ public async System.Threading.Tasks.Task> Pos // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4057,7 +4057,7 @@ public ApiResponse PutContactsWithHttpInfo(string account /// The external account number (int) or account ID Guid. /// (optional) /// Task of ContactUpdateResponse - public async System.Threading.Tasks.Task PutContactsAsync(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task PutContactsAsync(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await PutContactsAsyncWithHttpInfo(accountId, contactModRequest); return localVarResponse.Data; @@ -4070,7 +4070,7 @@ public async System.Threading.Tasks.Task PutContactsAsync /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (ContactUpdateResponse) - public async System.Threading.Tasks.Task> PutContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null) + public async System.Threading.Tasks.Task> PutContactsAsyncWithHttpInfo(string accountId, ContactModRequest contactModRequest = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4120,7 +4120,7 @@ public async System.Threading.Tasks.Task> Put // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4175,7 +4175,7 @@ public ApiResponse UpdateCustomSettingsWithHttpInfo(s /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of CustomSettingsInformation - public async System.Threading.Tasks.Task UpdateCustomSettingsAsync(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null) + public async System.Threading.Tasks.Task UpdateCustomSettingsAsync(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateCustomSettingsAsyncWithHttpInfo(accountId, userId, customSettingsInformation); return localVarResponse.Data; @@ -4189,7 +4189,7 @@ public async System.Threading.Tasks.Task UpdateCustom /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (CustomSettingsInformation) - public async System.Threading.Tasks.Task> UpdateCustomSettingsAsyncWithHttpInfo(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null) + public async System.Threading.Tasks.Task> UpdateCustomSettingsAsyncWithHttpInfo(string accountId, string userId, CustomSettingsInformation customSettingsInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4243,7 +4243,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4297,7 +4297,7 @@ public ApiResponse UpdateProfileWithHttpInfo(string accountId, string us /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of void - public async System.Threading.Tasks.Task UpdateProfileAsync(string accountId, string userId, UserProfile userProfile = null) + public async System.Threading.Tasks.Task UpdateProfileAsync(string accountId, string userId, UserProfile userProfile = null, System.Threading.CancellationToken cancellationToken = default) { await UpdateProfileAsyncWithHttpInfo(accountId, userId, userProfile); } @@ -4310,7 +4310,7 @@ public async System.Threading.Tasks.Task UpdateProfileAsync(string accountId, st /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateProfileAsyncWithHttpInfo(string accountId, string userId, UserProfile userProfile = null) + public async System.Threading.Tasks.Task> UpdateProfileAsyncWithHttpInfo(string accountId, string userId, UserProfile userProfile = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4364,7 +4364,7 @@ public async System.Threading.Tasks.Task> UpdateProfileAsync // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4416,7 +4416,7 @@ public ApiResponse UpdateProfileImageWithHttpInfo(string accountId, stri /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of void - public async System.Threading.Tasks.Task UpdateProfileImageAsync(string accountId, string userId) + public async System.Threading.Tasks.Task UpdateProfileImageAsync(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { await UpdateProfileImageAsyncWithHttpInfo(accountId, userId); } @@ -4428,7 +4428,7 @@ public async System.Threading.Tasks.Task UpdateProfileImageAsync(string accountI /// The external account number (int) or account ID Guid. /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateProfileImageAsyncWithHttpInfo(string accountId, string userId) + public async System.Threading.Tasks.Task> UpdateProfileImageAsyncWithHttpInfo(string accountId, string userId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4475,7 +4475,7 @@ public async System.Threading.Tasks.Task> UpdateProfileImage // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4541,9 +4541,9 @@ public ApiResponse UpdateSettingsWithHttpInfo(string accountId, string u /// (optional) /// Options for modifying the behavior of the function. /// Task of void - public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, string userId, UserSettingsInformation userSettingsInformation = null, UsersApi.UpdateSettingsOptions options = null) + public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, string userId, UserSettingsInformation userSettingsInformation = null, UsersApi.UpdateSettingsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - await UpdateSettingsAsyncWithHttpInfo(accountId, userId, userSettingsInformation, options); + await UpdateSettingsAsyncWithHttpInfo(accountId, userId, userSettingsInformation, options, cancellationToken); } /// @@ -4555,7 +4555,7 @@ public async System.Threading.Tasks.Task UpdateSettingsAsync(string accountId, s /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateSettingsAsyncWithHttpInfo(string accountId, string userId, UserSettingsInformation userSettingsInformation = null, UsersApi.UpdateSettingsOptions options = null) + public async System.Threading.Tasks.Task> UpdateSettingsAsyncWithHttpInfo(string accountId, string userId, UserSettingsInformation userSettingsInformation = null, UsersApi.UpdateSettingsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4613,7 +4613,7 @@ public async System.Threading.Tasks.Task> UpdateSettingsAsyn // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4683,9 +4683,9 @@ public ApiResponse UpdateSignatureWithHttpInfo(string accountId, /// (optional) /// Options for modifying the behavior of the function. /// Task of UserSignature - public async System.Threading.Tasks.Task UpdateSignatureAsync(string accountId, string userId, string signatureId, UserSignatureDefinition userSignatureDefinition = null, UsersApi.UpdateSignatureOptions options = null) + public async System.Threading.Tasks.Task UpdateSignatureAsync(string accountId, string userId, string signatureId, UserSignatureDefinition userSignatureDefinition = null, UsersApi.UpdateSignatureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateSignatureAsyncWithHttpInfo(accountId, userId, signatureId, userSignatureDefinition, options); + ApiResponse localVarResponse = await UpdateSignatureAsyncWithHttpInfo(accountId, userId, signatureId, userSignatureDefinition, options, cancellationToken); return localVarResponse.Data; } @@ -4699,7 +4699,7 @@ public async System.Threading.Tasks.Task UpdateSignatureAsync(str /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserSignature) - public async System.Threading.Tasks.Task> UpdateSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId, UserSignatureDefinition userSignatureDefinition = null, UsersApi.UpdateSignatureOptions options = null) + public async System.Threading.Tasks.Task> UpdateSignatureAsyncWithHttpInfo(string accountId, string userId, string signatureId, UserSignatureDefinition userSignatureDefinition = null, UsersApi.UpdateSignatureOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4761,7 +4761,7 @@ public async System.Threading.Tasks.Task> UpdateSigna // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4830,9 +4830,9 @@ public ApiResponse UpdateSignatureImageWithHttpInfo(string accoun /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of UserSignature - public async System.Threading.Tasks.Task UpdateSignatureImageAsync(string accountId, string userId, string signatureId, string imageType, UsersApi.UpdateSignatureImageOptions options = null) + public async System.Threading.Tasks.Task UpdateSignatureImageAsync(string accountId, string userId, string signatureId, string imageType, UsersApi.UpdateSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateSignatureImageAsyncWithHttpInfo(accountId, userId, signatureId, imageType, options); + ApiResponse localVarResponse = await UpdateSignatureImageAsyncWithHttpInfo(accountId, userId, signatureId, imageType, options, cancellationToken); return localVarResponse.Data; } @@ -4846,7 +4846,7 @@ public async System.Threading.Tasks.Task UpdateSignatureImageAsyn /// One of **signature_image** or **initials_image**. /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserSignature) - public async System.Threading.Tasks.Task> UpdateSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType, UsersApi.UpdateSignatureImageOptions options = null) + public async System.Threading.Tasks.Task> UpdateSignatureImageAsyncWithHttpInfo(string accountId, string userId, string signatureId, string imageType, UsersApi.UpdateSignatureImageOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -4905,7 +4905,7 @@ public async System.Threading.Tasks.Task> UpdateSigna // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -4960,7 +4960,7 @@ public ApiResponse UpdateSignaturesWithHttpInfo(strin /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of UserSignaturesInformation - public async System.Threading.Tasks.Task UpdateSignaturesAsync(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null) + public async System.Threading.Tasks.Task UpdateSignaturesAsync(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateSignaturesAsyncWithHttpInfo(accountId, userId, userSignaturesInformation); return localVarResponse.Data; @@ -4974,7 +4974,7 @@ public async System.Threading.Tasks.Task UpdateSignat /// The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. /// (optional) /// Task of ApiResponse (UserSignaturesInformation) - public async System.Threading.Tasks.Task> UpdateSignaturesAsyncWithHttpInfo(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null) + public async System.Threading.Tasks.Task> UpdateSignaturesAsyncWithHttpInfo(string accountId, string userId, UserSignaturesInformation userSignaturesInformation = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5028,7 +5028,7 @@ public async System.Threading.Tasks.Task> // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5094,9 +5094,9 @@ public ApiResponse UpdateUserWithHttpInfo(string accountId, str /// (optional) /// Options for modifying the behavior of the function. /// Task of UserInformation - public async System.Threading.Tasks.Task UpdateUserAsync(string accountId, string userId, UserInformation userInformation = null, UsersApi.UpdateUserOptions options = null) + public async System.Threading.Tasks.Task UpdateUserAsync(string accountId, string userId, UserInformation userInformation = null, UsersApi.UpdateUserOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateUserAsyncWithHttpInfo(accountId, userId, userInformation, options); + ApiResponse localVarResponse = await UpdateUserAsyncWithHttpInfo(accountId, userId, userInformation, options, cancellationToken); return localVarResponse.Data; } @@ -5109,7 +5109,7 @@ public async System.Threading.Tasks.Task UpdateUserAsync(string /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserInformation) - public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo(string accountId, string userId, UserInformation userInformation = null, UsersApi.UpdateUserOptions options = null) + public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo(string accountId, string userId, UserInformation userInformation = null, UsersApi.UpdateUserOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5167,7 +5167,7 @@ public async System.Threading.Tasks.Task> UpdateUse // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -5230,9 +5230,9 @@ public ApiResponse UpdateUsersWithHttpInfo(string accountId /// (optional) /// Options for modifying the behavior of the function. /// Task of UserInformationList - public async System.Threading.Tasks.Task UpdateUsersAsync(string accountId, UserInformationList userInformationList = null, UsersApi.UpdateUsersOptions options = null) + public async System.Threading.Tasks.Task UpdateUsersAsync(string accountId, UserInformationList userInformationList = null, UsersApi.UpdateUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await UpdateUsersAsyncWithHttpInfo(accountId, userInformationList, options); + ApiResponse localVarResponse = await UpdateUsersAsyncWithHttpInfo(accountId, userInformationList, options, cancellationToken); return localVarResponse.Data; } @@ -5244,7 +5244,7 @@ public async System.Threading.Tasks.Task UpdateUsersAsync(s /// (optional) /// Options for modifying the behavior of the function. /// Task of ApiResponse (UserInformationList) - public async System.Threading.Tasks.Task> UpdateUsersAsyncWithHttpInfo(string accountId, UserInformationList userInformationList = null, UsersApi.UpdateUsersOptions options = null) + public async System.Threading.Tasks.Task> UpdateUsersAsyncWithHttpInfo(string accountId, UserInformationList userInformationList = null, UsersApi.UpdateUsersOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -5298,7 +5298,7 @@ public async System.Threading.Tasks.Task> Updat // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Api/WorkspacesApi.cs b/sdk/src/DocuSign.eSign/Api/WorkspacesApi.cs index 5fc54c1ed..ce5a2ef42 100644 --- a/sdk/src/DocuSign.eSign/Api/WorkspacesApi.cs +++ b/sdk/src/DocuSign.eSign/Api/WorkspacesApi.cs @@ -674,7 +674,7 @@ public ApiResponse CreateWorkspaceWithHttpInfo(string accountId, Work /// The external account number (int) or account ID Guid. /// (optional) /// Task of Workspace - public async System.Threading.Tasks.Task CreateWorkspaceAsync(string accountId, Workspace workspace = null) + public async System.Threading.Tasks.Task CreateWorkspaceAsync(string accountId, Workspace workspace = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateWorkspaceAsyncWithHttpInfo(accountId, workspace); return localVarResponse.Data; @@ -687,7 +687,7 @@ public async System.Threading.Tasks.Task CreateWorkspaceAsync(string /// The external account number (int) or account ID Guid. /// (optional) /// Task of ApiResponse (Workspace) - public async System.Threading.Tasks.Task> CreateWorkspaceAsyncWithHttpInfo(string accountId, Workspace workspace = null) + public async System.Threading.Tasks.Task> CreateWorkspaceAsyncWithHttpInfo(string accountId, Workspace workspace = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -737,7 +737,7 @@ public async System.Threading.Tasks.Task> CreateWorkspace // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -792,7 +792,7 @@ public ApiResponse CreateWorkspaceFileWithHttpInfo(string account /// Specifies the workspace ID GUID. /// The ID of the folder being accessed. /// Task of WorkspaceItem - public async System.Threading.Tasks.Task CreateWorkspaceFileAsync(string accountId, string workspaceId, string folderId) + public async System.Threading.Tasks.Task CreateWorkspaceFileAsync(string accountId, string workspaceId, string folderId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await CreateWorkspaceFileAsyncWithHttpInfo(accountId, workspaceId, folderId); return localVarResponse.Data; @@ -806,7 +806,7 @@ public async System.Threading.Tasks.Task CreateWorkspaceFileAsync /// Specifies the workspace ID GUID. /// The ID of the folder being accessed. /// Task of ApiResponse (WorkspaceItem) - public async System.Threading.Tasks.Task> CreateWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId) + public async System.Threading.Tasks.Task> CreateWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -856,7 +856,7 @@ public async System.Threading.Tasks.Task> CreateWorks // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Post, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -908,7 +908,7 @@ public ApiResponse DeleteWorkspaceWithHttpInfo(string accountId, stri /// The external account number (int) or account ID Guid. /// Specifies the workspace ID GUID. /// Task of Workspace - public async System.Threading.Tasks.Task DeleteWorkspaceAsync(string accountId, string workspaceId) + public async System.Threading.Tasks.Task DeleteWorkspaceAsync(string accountId, string workspaceId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await DeleteWorkspaceAsyncWithHttpInfo(accountId, workspaceId); return localVarResponse.Data; @@ -921,7 +921,7 @@ public async System.Threading.Tasks.Task DeleteWorkspaceAsync(string /// The external account number (int) or account ID Guid. /// Specifies the workspace ID GUID. /// Task of ApiResponse (Workspace) - public async System.Threading.Tasks.Task> DeleteWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId) + public async System.Threading.Tasks.Task> DeleteWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -967,7 +967,7 @@ public async System.Threading.Tasks.Task> DeleteWorkspace // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1024,7 +1024,7 @@ public ApiResponse DeleteWorkspaceFolderItemsWithHttpInfo(string account /// The ID of the folder being accessed. /// (optional) /// Task of void - public async System.Threading.Tasks.Task DeleteWorkspaceFolderItemsAsync(string accountId, string workspaceId, string folderId, WorkspaceItemList workspaceItemList = null) + public async System.Threading.Tasks.Task DeleteWorkspaceFolderItemsAsync(string accountId, string workspaceId, string folderId, WorkspaceItemList workspaceItemList = null, System.Threading.CancellationToken cancellationToken = default) { await DeleteWorkspaceFolderItemsAsyncWithHttpInfo(accountId, workspaceId, folderId, workspaceItemList); } @@ -1038,7 +1038,7 @@ public async System.Threading.Tasks.Task DeleteWorkspaceFolderItemsAsync(string /// The ID of the folder being accessed. /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteWorkspaceFolderItemsAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, WorkspaceItemList workspaceItemList = null) + public async System.Threading.Tasks.Task> DeleteWorkspaceFolderItemsAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, WorkspaceItemList workspaceItemList = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1096,7 +1096,7 @@ public async System.Threading.Tasks.Task> DeleteWorkspaceFol // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Delete, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1149,7 +1149,7 @@ public ApiResponse GetWorkspaceWithHttpInfo(string accountId, string /// The external account number (int) or account ID Guid. /// Specifies the workspace ID GUID. /// Task of Workspace - public async System.Threading.Tasks.Task GetWorkspaceAsync(string accountId, string workspaceId) + public async System.Threading.Tasks.Task GetWorkspaceAsync(string accountId, string workspaceId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await GetWorkspaceAsyncWithHttpInfo(accountId, workspaceId); return localVarResponse.Data; @@ -1162,7 +1162,7 @@ public async System.Threading.Tasks.Task GetWorkspaceAsync(string acc /// The external account number (int) or account ID Guid. /// Specifies the workspace ID GUID. /// Task of ApiResponse (Workspace) - public async System.Threading.Tasks.Task> GetWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId) + public async System.Threading.Tasks.Task> GetWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1208,7 +1208,7 @@ public async System.Threading.Tasks.Task> GetWorkspaceAsy // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1278,9 +1278,9 @@ public ApiResponse GetWorkspaceFileWithHttpInfo(string accountId, string /// Specifies the room file ID GUID. /// Options for modifying the behavior of the function. /// Task of void - public async System.Threading.Tasks.Task GetWorkspaceFileAsync(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.GetWorkspaceFileOptions options = null) + public async System.Threading.Tasks.Task GetWorkspaceFileAsync(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.GetWorkspaceFileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - await GetWorkspaceFileAsyncWithHttpInfo(accountId, workspaceId, folderId, fileId, options); + await GetWorkspaceFileAsyncWithHttpInfo(accountId, workspaceId, folderId, fileId, options, cancellationToken); } /// @@ -1293,7 +1293,7 @@ public async System.Threading.Tasks.Task GetWorkspaceFileAsync(string accountId, /// Specifies the room file ID GUID. /// Options for modifying the behavior of the function. /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.GetWorkspaceFileOptions options = null) + public async System.Threading.Tasks.Task> GetWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.GetWorkspaceFileOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1352,7 +1352,7 @@ public async System.Threading.Tasks.Task> GetWorkspaceFileAs // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1430,9 +1430,9 @@ public ApiResponse ListWorkspaceFilePagesWithHttpInfo(string account /// Specifies the room file ID GUID. /// Options for modifying the behavior of the function. /// Task of PageImages - public async System.Threading.Tasks.Task ListWorkspaceFilePagesAsync(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options = null) + public async System.Threading.Tasks.Task ListWorkspaceFilePagesAsync(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListWorkspaceFilePagesAsyncWithHttpInfo(accountId, workspaceId, folderId, fileId, options); + ApiResponse localVarResponse = await ListWorkspaceFilePagesAsyncWithHttpInfo(accountId, workspaceId, folderId, fileId, options, cancellationToken); return localVarResponse.Data; } @@ -1446,7 +1446,7 @@ public async System.Threading.Tasks.Task ListWorkspaceFilePagesAsync /// Specifies the room file ID GUID. /// Options for modifying the behavior of the function. /// Task of ApiResponse (PageImages) - public async System.Threading.Tasks.Task> ListWorkspaceFilePagesAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options = null) + public async System.Threading.Tasks.Task> ListWorkspaceFilePagesAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1508,7 +1508,7 @@ public async System.Threading.Tasks.Task> ListWorkspaceF // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1586,9 +1586,9 @@ public ApiResponse ListWorkspaceFolderItemsWithHttpInfo /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of WorkspaceFolderContents - public async System.Threading.Tasks.Task ListWorkspaceFolderItemsAsync(string accountId, string workspaceId, string folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options = null) + public async System.Threading.Tasks.Task ListWorkspaceFolderItemsAsync(string accountId, string workspaceId, string folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await ListWorkspaceFolderItemsAsyncWithHttpInfo(accountId, workspaceId, folderId, options); + ApiResponse localVarResponse = await ListWorkspaceFolderItemsAsyncWithHttpInfo(accountId, workspaceId, folderId, options, cancellationToken); return localVarResponse.Data; } @@ -1601,7 +1601,7 @@ public async System.Threading.Tasks.Task ListWorkspaceF /// The ID of the folder being accessed. /// Options for modifying the behavior of the function. /// Task of ApiResponse (WorkspaceFolderContents) - public async System.Threading.Tasks.Task> ListWorkspaceFolderItemsAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options = null) + public async System.Threading.Tasks.Task> ListWorkspaceFolderItemsAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1661,7 +1661,7 @@ public async System.Threading.Tasks.Task> L // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1710,7 +1710,7 @@ public ApiResponse ListWorkspacesWithHttpInfo(string accountId) /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of WorkspaceList - public async System.Threading.Tasks.Task ListWorkspacesAsync(string accountId) + public async System.Threading.Tasks.Task ListWorkspacesAsync(string accountId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await ListWorkspacesAsyncWithHttpInfo(accountId); return localVarResponse.Data; @@ -1722,7 +1722,7 @@ public async System.Threading.Tasks.Task ListWorkspacesAsync(stri /// Thrown when fails to make API call /// The external account number (int) or account ID Guid. /// Task of ApiResponse (WorkspaceList) - public async System.Threading.Tasks.Task> ListWorkspacesAsyncWithHttpInfo(string accountId) + public async System.Threading.Tasks.Task> ListWorkspacesAsyncWithHttpInfo(string accountId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1764,7 +1764,7 @@ public async System.Threading.Tasks.Task> ListWorkspa // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Get, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1819,7 +1819,7 @@ public ApiResponse UpdateWorkspaceWithHttpInfo(string accountId, stri /// Specifies the workspace ID GUID. /// (optional) /// Task of Workspace - public async System.Threading.Tasks.Task UpdateWorkspaceAsync(string accountId, string workspaceId, Workspace workspace = null) + public async System.Threading.Tasks.Task UpdateWorkspaceAsync(string accountId, string workspaceId, Workspace workspace = null, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateWorkspaceAsyncWithHttpInfo(accountId, workspaceId, workspace); return localVarResponse.Data; @@ -1833,7 +1833,7 @@ public async System.Threading.Tasks.Task UpdateWorkspaceAsync(string /// Specifies the workspace ID GUID. /// (optional) /// Task of ApiResponse (Workspace) - public async System.Threading.Tasks.Task> UpdateWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId, Workspace workspace = null) + public async System.Threading.Tasks.Task> UpdateWorkspaceAsyncWithHttpInfo(string accountId, string workspaceId, Workspace workspace = null, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -1887,7 +1887,7 @@ public async System.Threading.Tasks.Task> UpdateWorkspace // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1945,7 +1945,7 @@ public ApiResponse UpdateWorkspaceFileWithHttpInfo(string account /// The ID of the folder being accessed. /// Specifies the room file ID GUID. /// Task of WorkspaceItem - public async System.Threading.Tasks.Task UpdateWorkspaceFileAsync(string accountId, string workspaceId, string folderId, string fileId) + public async System.Threading.Tasks.Task UpdateWorkspaceFileAsync(string accountId, string workspaceId, string folderId, string fileId, System.Threading.CancellationToken cancellationToken = default) { ApiResponse localVarResponse = await UpdateWorkspaceFileAsyncWithHttpInfo(accountId, workspaceId, folderId, fileId); return localVarResponse.Data; @@ -1960,7 +1960,7 @@ public async System.Threading.Tasks.Task UpdateWorkspaceFileAsync /// The ID of the folder being accessed. /// Specifies the room file ID GUID. /// Task of ApiResponse (WorkspaceItem) - public async System.Threading.Tasks.Task> UpdateWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId) + public async System.Threading.Tasks.Task> UpdateWorkspaceFileAsyncWithHttpInfo(string accountId, string workspaceId, string folderId, string fileId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -2014,7 +2014,7 @@ public async System.Threading.Tasks.Task> UpdateWorks // make the HTTP request DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, HttpMethod.Put, localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition); - DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest); + DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest, cancellationToken) int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/sdk/src/DocuSign.eSign/Client/DocuSignClient.cs b/sdk/src/DocuSign.eSign/Client/DocuSignClient.cs index 14dba5f46..b9693856b 100644 --- a/sdk/src/DocuSign.eSign/Client/DocuSignClient.cs +++ b/sdk/src/DocuSign.eSign/Client/DocuSignClient.cs @@ -247,11 +247,10 @@ public DocuSignResponse CallApi(DocuSignRequest request) return response; } - public async Task CallApiAsync(DocuSignRequest request) + public async Task CallApiAsync(DocuSignRequest request, CancellationToken cancellationToken = default) { //InterceptRequest(request); - CancellationTokenSource cts = new CancellationTokenSource(); - var response = await RestClient.SendRequestAsync(request, cts.Token); + var response = await RestClient.SendRequestAsync(request, cancellationToken); //InterceptResponse(request, response); return response;