/// <summary> /// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated. /// </summary> /// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of ApiResponse (DeleteResponseSchema)</returns> public async System.Threading.Tasks.Task <ApiResponse <DeleteResponseSchema> > DeleteDigitizationAsyncWithHttpInfo(DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema)) { var localVarPath = "./digitization/static/1/0/delete"; 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 (deleteRequestSchema != null && deleteRequestSchema.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(deleteRequestSchema); // http body (model) parameter } else { localVarPostBody = deleteRequestSchema; // 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("DeleteDigitization", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <DeleteResponseSchema>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => string.Join(",", x.Value)), (DeleteResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeleteResponseSchema)))); }
/// <summary> /// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated. /// </summary> /// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of DeleteResponseSchema</returns> public async System.Threading.Tasks.Task <DeleteResponseSchema> DeleteDigitizationAsync(DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema)) { ApiResponse <DeleteResponseSchema> localVarResponse = await DeleteDigitizationAsyncWithHttpInfo(deleteRequestSchema); return(localVarResponse.Data); }
/// <summary> /// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated. /// </summary> /// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>DeleteResponseSchema</returns> public DeleteResponseSchema DeleteDigitization(DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema)) { ApiResponse <DeleteResponseSchema> localVarResponse = DeleteDigitizationWithHttpInfo(deleteRequestSchema); return(localVarResponse.Data); }