/// <summary> /// Used to retrieve transactions performed by a token. It only returns transactions performed within the last 30 days, to help identify a particular token, or to identify a particular recent transaction. It is not intended to provide the full transaction history of a token or Account PAN. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="transactionsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of ApiResponse (TransactionsResponseSchema)</returns> public async System.Threading.Tasks.Task <ApiResponse <TransactionsResponseSchema> > TransactionsPostAsyncWithHttpInfo(TransactionsRequestSchema transactionsRequestSchema = null) { var localVarPath = "/transactions"; 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 (transactionsRequestSchema != null && transactionsRequestSchema.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(transactionsRequestSchema); // http body (model) parameter } else { localVarPostBody = transactionsRequestSchema; // 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("TransactionsPost", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <TransactionsResponseSchema>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (TransactionsResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionsResponseSchema)))); }
/// <summary> /// Used to retrieve transactions performed by a token. It only returns transactions performed within the last 30 days, to help identify a particular token, or to identify a particular recent transaction. It is not intended to provide the full transaction history of a token or Account PAN. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="transactionsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>Task of TransactionsResponseSchema</returns> public async System.Threading.Tasks.Task <TransactionsResponseSchema> TransactionsPostAsync(TransactionsRequestSchema transactionsRequestSchema = null) { ApiResponse <TransactionsResponseSchema> localVarResponse = await TransactionsPostAsyncWithHttpInfo(transactionsRequestSchema); return(localVarResponse.Data); }
/// <summary> /// Used to retrieve transactions performed by a token. It only returns transactions performed within the last 30 days, to help identify a particular token, or to identify a particular recent transaction. It is not intended to provide the full transaction history of a token or Account PAN. /// </summary> /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="transactionsRequestSchema">Contains the details of the request message. (optional)</param> /// <returns>TransactionsResponseSchema</returns> public TransactionsResponseSchema TransactionsPost(TransactionsRequestSchema transactionsRequestSchema = null) { ApiResponse <TransactionsResponseSchema> localVarResponse = TransactionsPostWithHttpInfo(transactionsRequestSchema); return(localVarResponse.Data); }