/// <summary> /// Used to retrieve all comments associated with a token. Typically the response includes comments created earlier by Issuer Customer Service representatives detailing additional information about a particular inquiry or event. There may also be comments with warnings of potential fraud. These are created automatically by the MDES system when a Token Requestor indicates a high risk request during digitization. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tokenCommentsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of ApiResponse (TokenCommentsResponseSchema)</returns> public async System.Threading.Tasks.Task <ApiResponse <TokenCommentsResponseSchema> > TokenCommentsPostAsyncWithHttpInfo(TokenCommentsRequestSchema tokenCommentsRequestSchema = null) { var localVarPath = "/token/comments"; 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 (tokenCommentsRequestSchema != null && tokenCommentsRequestSchema.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(tokenCommentsRequestSchema); // http body (model) parameter } else { localVarPostBody = tokenCommentsRequestSchema; // 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("TokenCommentsPost", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <TokenCommentsResponseSchema>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (TokenCommentsResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenCommentsResponseSchema)))); }
/// <summary> /// Used to retrieve all comments associated with a token. Typically the response includes comments created earlier by Issuer Customer Service representatives detailing additional information about a particular inquiry or event. There may also be comments with warnings of potential fraud. These are created automatically by the MDES system when a Token Requestor indicates a high risk request during digitization. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tokenCommentsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of TokenCommentsResponseSchema</returns> public async System.Threading.Tasks.Task <TokenCommentsResponseSchema> TokenCommentsPostAsync(TokenCommentsRequestSchema tokenCommentsRequestSchema = null) { ApiResponse <TokenCommentsResponseSchema> localVarResponse = await TokenCommentsPostAsyncWithHttpInfo(tokenCommentsRequestSchema); return(localVarResponse.Data); }
/// <summary> /// Used to retrieve all comments associated with a token. Typically the response includes comments created earlier by Issuer Customer Service representatives detailing additional information about a particular inquiry or event. There may also be comments with warnings of potential fraud. These are created automatically by the MDES system when a Token Requestor indicates a high risk request during digitization. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tokenCommentsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>TokenCommentsResponseSchema</returns> public TokenCommentsResponseSchema TokenCommentsPost(TokenCommentsRequestSchema tokenCommentsRequestSchema = null) { ApiResponse <TokenCommentsResponseSchema> localVarResponse = TokenCommentsPostWithHttpInfo(tokenCommentsRequestSchema); return(localVarResponse.Data); }