/// <summary>
        ///  Used to activate a token for a digitization that has been approved and provisioned, but requires additional cardholder authentication prior to activation. If the provisioning was not completed successfully, activation cannot be accomplished using Customer Service API. It is expected that a cardholder will complete the authentication process using an issuer&#39;s call center or using an issuer-supplied mobile application, and only then should the issuer use this API to activate the token.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenActivateRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>Task of ApiResponse (TokenActivateResponseSchema)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <TokenActivateResponseSchema> > TokenActivatePostAsyncWithHttpInfo(TokenActivateRequestSchema tokenActivateRequestSchema = null)
        {
            var    localVarPath         = "/token/activate";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new List <KeyValuePair <String, String> >();
            var    localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json"
            };
            String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json"
            };
            String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (tokenActivateRequestSchema != null && tokenActivateRequestSchema.GetType() != typeof(byte[]))
            {
                localVarPostBody = this.Configuration.ApiClient.Serialize(tokenActivateRequestSchema); // http body (model) parameter
            }
            else
            {
                localVarPostBody = tokenActivateRequestSchema; // byte array
            }


            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                            Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("TokenActivatePost", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <TokenActivateResponseSchema>(localVarStatusCode,
                                                                 localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                                 (TokenActivateResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenActivateResponseSchema))));
        }
        /// <summary>
        ///  Used to activate a token for a digitization that has been approved and provisioned, but requires additional cardholder authentication prior to activation. If the provisioning was not completed successfully, activation cannot be accomplished using Customer Service API. It is expected that a cardholder will complete the authentication process using an issuer&#39;s call center or using an issuer-supplied mobile application, and only then should the issuer use this API to activate the token.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenActivateRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>Task of TokenActivateResponseSchema</returns>
        public async System.Threading.Tasks.Task <TokenActivateResponseSchema> TokenActivatePostAsync(TokenActivateRequestSchema tokenActivateRequestSchema = null)
        {
            ApiResponse <TokenActivateResponseSchema> localVarResponse = await TokenActivatePostAsyncWithHttpInfo(tokenActivateRequestSchema);

            return(localVarResponse.Data);
        }
        /// <summary>
        ///  Used to activate a token for a digitization that has been approved and provisioned, but requires additional cardholder authentication prior to activation. If the provisioning was not completed successfully, activation cannot be accomplished using Customer Service API. It is expected that a cardholder will complete the authentication process using an issuer&#39;s call center or using an issuer-supplied mobile application, and only then should the issuer use this API to activate the token.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenActivateRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>TokenActivateResponseSchema</returns>
        public TokenActivateResponseSchema TokenActivatePost(TokenActivateRequestSchema tokenActivateRequestSchema = null)
        {
            ApiResponse <TokenActivateResponseSchema> localVarResponse = TokenActivatePostWithHttpInfo(tokenActivateRequestSchema);

            return(localVarResponse.Data);
        }