@@ -455,6 +455,31 @@ public interface IEnvelopesApi : IApiAccessor
455455 /// <returns>ApiResponse of </returns>
456456 ApiResponse<WorkflowStep> CreateEnvelopeWorkflowStepDefinitionWithHttpInfo(string accountId, string envelopeId, WorkflowStep workflowStep = null);
457457 /// <summary>
458+ /// Creates new envelopes shares
459+ /// </summary>
460+ /// <remarks>
461+ ///
462+ /// </remarks>
463+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
464+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
465+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
466+ /// <param name="envelopesSharesRequest"> (optional)</param>
467+ /// <returns></returns>
468+ EnvelopesSharesResponse CreateEnvelopesShares(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null);
469+
470+ /// <summary>
471+ /// Creates new envelopes shares
472+ /// </summary>
473+ /// <remarks>
474+ ///
475+ /// </remarks>
476+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
477+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
478+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
479+ /// <param name="envelopesSharesRequest"> (optional)</param>
480+ /// <returns>ApiResponse of </returns>
481+ ApiResponse<EnvelopesSharesResponse> CreateEnvelopesSharesWithHttpInfo(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null);
482+ /// <summary>
458483 /// Submits a batch of historical envelopes for republish to an adhoc config.
459484 /// </summary>
460485 /// <remarks>
@@ -3712,6 +3737,31 @@ public interface IEnvelopesApi : IApiAccessor
37123737 /// <returns>Task of ApiResponse (WorkflowStep)</returns>
37133738 System.Threading.Tasks.Task<ApiResponse<WorkflowStep>> CreateEnvelopeWorkflowStepDefinitionAsyncWithHttpInfo(string accountId, string envelopeId, WorkflowStep workflowStep = null);
37143739 /// <summary>
3740+ /// Creates new envelopes shares
3741+ /// </summary>
3742+ /// <remarks>
3743+ ///
3744+ /// </remarks>
3745+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
3746+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
3747+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
3748+ /// <param name="envelopesSharesRequest"> (optional)</param>
3749+ /// <returns>Task of EnvelopesSharesResponse</returns>
3750+ System.Threading.Tasks.Task<EnvelopesSharesResponse> CreateEnvelopesSharesAsync(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null);
3751+
3752+ /// <summary>
3753+ /// Creates new envelopes shares
3754+ /// </summary>
3755+ /// <remarks>
3756+ ///
3757+ /// </remarks>
3758+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
3759+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
3760+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
3761+ /// <param name="envelopesSharesRequest"> (optional)</param>
3762+ /// <returns>Task of ApiResponse (EnvelopesSharesResponse)</returns>
3763+ System.Threading.Tasks.Task<ApiResponse<EnvelopesSharesResponse>> CreateEnvelopesSharesAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null);
3764+ /// <summary>
37153765 /// Submits a batch of historical envelopes for republish to an adhoc config.
37163766 /// </summary>
37173767 /// <remarks>
@@ -9811,6 +9861,191 @@ public async System.Threading.Tasks.Task<ApiResponse<WorkflowStep>> CreateEnvelo
98119861 }
98129862
98139863
9864+ /// <summary>
9865+ /// Creates new envelopes shares
9866+ /// </summary>
9867+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
9868+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
9869+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
9870+ /// <param name="envelopesSharesRequest"> (optional)</param>
9871+ /// <returns>EnvelopesSharesResponse</returns>
9872+ public EnvelopesSharesResponse CreateEnvelopesShares(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null)
9873+ {
9874+ ApiResponse<EnvelopesSharesResponse> localVarResponse = CreateEnvelopesSharesWithHttpInfo(accountId, envelopeId, envelopesSharesRequest);
9875+ return localVarResponse.Data;
9876+ }
9877+
9878+ /// <summary>
9879+ /// Creates new envelopes shares
9880+ /// </summary>
9881+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
9882+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
9883+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
9884+ /// <param name="envelopesSharesRequest"> (optional)</param>
9885+ /// <returns>ApiResponse of EnvelopesSharesResponse</returns>
9886+ public ApiResponse<EnvelopesSharesResponse> CreateEnvelopesSharesWithHttpInfo(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null)
9887+ {
9888+ // verify the required parameter 'accountId' is set
9889+ if (accountId == null)
9890+ throw new ApiException(400, "Missing required parameter 'accountId' when calling EnvelopesApi->CreateEnvelopesShares");
9891+ // verify the required parameter 'envelopeId' is set
9892+ if (envelopeId == null)
9893+ throw new ApiException(400, "Missing required parameter 'envelopeId' when calling EnvelopesApi->CreateEnvelopesShares");
9894+
9895+ var localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares";
9896+ var localVarPathParams = new Dictionary<String, String>();
9897+ var localVarQueryParams = new Dictionary<String, String>();
9898+ var localVarHeaderParams = new Dictionary<String, String>(this.ApiClient.Configuration.DefaultHeader);
9899+ var localVarFormParams = new Dictionary<String, String>();
9900+ var localVarFileParams = new List<FileParameter>();
9901+ Object localVarPostBody = null;
9902+ String localVarHttpContentDisposition = string.Empty;
9903+
9904+ // to determine the Content-Type header
9905+ String[] localVarHttpContentTypes = new String[] {
9906+ };
9907+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
9908+
9909+ // to determine the Accept header
9910+ String[] localVarHttpHeaderAccepts = new String[] {
9911+ "application/json"
9912+ };
9913+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
9914+ if (localVarHttpHeaderAccept != null)
9915+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
9916+
9917+ // set "format" to json by default
9918+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
9919+ localVarPathParams.Add("format", "json");
9920+ if (accountId != null) localVarPathParams.Add("accountId", this.ApiClient.ParameterToString(accountId)); // path parameter
9921+ if (envelopeId != null) localVarPathParams.Add("envelopeId", this.ApiClient.ParameterToString(envelopeId)); // path parameter
9922+ if (envelopesSharesRequest != null && envelopesSharesRequest.GetType() != typeof(byte[]))
9923+ {
9924+ localVarPostBody = this.ApiClient.Serialize(envelopesSharesRequest); // http body (model) parameter
9925+ }
9926+ else
9927+ {
9928+ localVarPostBody = envelopesSharesRequest; // byte array
9929+ }
9930+
9931+ // authentication (docusignAccessCode) required
9932+ // oauth required
9933+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
9934+ {
9935+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
9936+ }
9937+
9938+
9939+ // make the HTTP request
9940+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
9941+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
9942+
9943+ int localVarStatusCode = (int)localVarResponse.StatusCode;
9944+
9945+ if (ExceptionFactory != null)
9946+ {
9947+ Exception exception = ExceptionFactory("CreateEnvelopesShares", localVarResponse);
9948+ if (exception != null) throw exception;
9949+ }
9950+
9951+ return new ApiResponse<EnvelopesSharesResponse>(localVarStatusCode,
9952+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
9953+ (EnvelopesSharesResponse)this.ApiClient.Deserialize(localVarResponse, typeof(EnvelopesSharesResponse)));
9954+ }
9955+
9956+ /// <summary>
9957+ /// Creates new envelopes shares
9958+ /// </summary>
9959+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
9960+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
9961+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
9962+ /// <param name="envelopesSharesRequest"> (optional)</param>
9963+ /// <returns>Task of EnvelopesSharesResponse</returns>
9964+ public async System.Threading.Tasks.Task<EnvelopesSharesResponse> CreateEnvelopesSharesAsync(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null)
9965+ {
9966+ ApiResponse<EnvelopesSharesResponse> localVarResponse = await CreateEnvelopesSharesAsyncWithHttpInfo(accountId, envelopeId, envelopesSharesRequest);
9967+ return localVarResponse.Data;
9968+ }
9969+
9970+ /// <summary>
9971+ /// Creates new envelopes shares
9972+ /// </summary>
9973+ /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>
9974+ /// <param name="accountId">The external account number (int) or account ID Guid.</param>
9975+ /// <param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param>
9976+ /// <param name="envelopesSharesRequest"> (optional)</param>
9977+ /// <returns>Task of ApiResponse (EnvelopesSharesResponse)</returns>
9978+ public async System.Threading.Tasks.Task<ApiResponse<EnvelopesSharesResponse>> CreateEnvelopesSharesAsyncWithHttpInfo(string accountId, string envelopeId, EnvelopesSharesRequest envelopesSharesRequest = null)
9979+ {
9980+ // verify the required parameter 'accountId' is set
9981+ if (accountId == null)
9982+ throw new ApiException(400, "Missing required parameter 'accountId' when calling EnvelopesApi->CreateEnvelopesShares");
9983+ // verify the required parameter 'envelopeId' is set
9984+ if (envelopeId == null)
9985+ throw new ApiException(400, "Missing required parameter 'envelopeId' when calling EnvelopesApi->CreateEnvelopesShares");
9986+
9987+ var localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares";
9988+ var localVarPathParams = new Dictionary<String, String>();
9989+ var localVarQueryParams = new Dictionary<String, String>();
9990+ var localVarHeaderParams = new Dictionary<String, String>(this.ApiClient.Configuration.DefaultHeader);
9991+ var localVarFormParams = new Dictionary<String, String>();
9992+ var localVarFileParams = new List<FileParameter>();
9993+ Object localVarPostBody = null;
9994+ String localVarHttpContentDisposition = string.Empty;
9995+
9996+ // to determine the Content-Type header
9997+ String[] localVarHttpContentTypes = new String[] {
9998+ };
9999+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
10000+
10001+ // to determine the Accept header
10002+ String[] localVarHttpHeaderAccepts = new String[] {
10003+ "application/json"
10004+ };
10005+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
10006+ if (localVarHttpHeaderAccept != null)
10007+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
10008+
10009+ // set "format" to json by default
10010+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
10011+ localVarPathParams.Add("format", "json");
10012+ if (accountId != null) localVarPathParams.Add("accountId", this.ApiClient.ParameterToString(accountId)); // path parameter
10013+ if (envelopeId != null) localVarPathParams.Add("envelopeId", this.ApiClient.ParameterToString(envelopeId)); // path parameter
10014+ if (envelopesSharesRequest != null && envelopesSharesRequest.GetType() != typeof(byte[]))
10015+ {
10016+ localVarPostBody = this.ApiClient.Serialize(envelopesSharesRequest); // http body (model) parameter
10017+ }
10018+ else
10019+ {
10020+ localVarPostBody = envelopesSharesRequest; // byte array
10021+ }
10022+
10023+ // authentication (docusignAccessCode) required
10024+ // oauth required
10025+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
10026+ {
10027+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
10028+ }
10029+
10030+
10031+ // make the HTTP request
10032+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
10033+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
10034+
10035+ int localVarStatusCode = (int)localVarResponse.StatusCode;
10036+
10037+ if (ExceptionFactory != null)
10038+ {
10039+ Exception exception = ExceptionFactory("CreateEnvelopesShares", localVarResponse);
10040+ if (exception != null) throw exception;
10041+ }
10042+
10043+ return new ApiResponse<EnvelopesSharesResponse>(localVarStatusCode,
10044+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
10045+ (EnvelopesSharesResponse)this.ApiClient.Deserialize(localVarResponse, typeof(EnvelopesSharesResponse)));
10046+ }
10047+
10048+
981410049 /// <summary>
981510050 /// Submits a batch of historical envelopes for republish to an adhoc config.
981610051 /// </summary>
0 commit comments