/// <summary> /// Provides the ability to search for tokens based on Account PAN, Alternate Account,Identifier, Token Unique Reference, Token, Payment App Instance Id or Comment Id. Returns all of the tokens associated with an account according to the scope of the indicated search request criteria. The response includes key state and informational data for each token, including the Token Unique Reference which is needed for subsequent token lifecycle management activities. Note - The Search API request must include only one of the available search methods Account PAN, Token Unique Reference, Token, Payment App Instance Id, Comment Id, or Alternate Account Identifier. They cannot be used together in a single request. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of ApiResponse (SearchResponseSchema)</returns> public async System.Threading.Tasks.Task <ApiResponse <SearchResponseSchema> > SearchPostAsyncWithHttpInfo(SearchRequestSchema searchRequestSchema = null) { var localVarPath = "/search"; 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 (searchRequestSchema != null && searchRequestSchema.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(searchRequestSchema); // http body (model) parameter } else { localVarPostBody = searchRequestSchema; // 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("SearchPost", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <SearchResponseSchema>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SearchResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResponseSchema)))); }
/// <summary> /// Provides the ability to search for tokens based on Account PAN, Alternate Account,Identifier, Token Unique Reference, Token, Payment App Instance Id or Comment Id. Returns all of the tokens associated with an account according to the scope of the indicated search request criteria. The response includes key state and informational data for each token, including the Token Unique Reference which is needed for subsequent token lifecycle management activities. Note - The Search API request must include only one of the available search methods Account PAN, Token Unique Reference, Token, Payment App Instance Id, Comment Id, or Alternate Account Identifier. They cannot be used together in a single request. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of SearchResponseSchema</returns> public async System.Threading.Tasks.Task <SearchResponseSchema> SearchPostAsync(SearchRequestSchema searchRequestSchema = null) { ApiResponse <SearchResponseSchema> localVarResponse = await SearchPostAsyncWithHttpInfo(searchRequestSchema); return(localVarResponse.Data); }
/// <summary> /// Provides the ability to search for tokens based on Account PAN, Alternate Account,Identifier, Token Unique Reference, Token, Payment App Instance Id or Comment Id. Returns all of the tokens associated with an account according to the scope of the indicated search request criteria. The response includes key state and informational data for each token, including the Token Unique Reference which is needed for subsequent token lifecycle management activities. Note - The Search API request must include only one of the available search methods Account PAN, Token Unique Reference, Token, Payment App Instance Id, Comment Id, or Alternate Account Identifier. They cannot be used together in a single request. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>SearchResponseSchema</returns> public SearchResponseSchema SearchPost(SearchRequestSchema searchRequestSchema = null) { ApiResponse <SearchResponseSchema> localVarResponse = SearchPostWithHttpInfo(searchRequestSchema); return(localVarResponse.Data); }