public static void Run() { try { var requestObj = new CyberSource.Model.CreateSearchRequest() { Save = false, Name = "TSS search", Timezone = "America/Chicago", Query = "clientReferenceInformation.code:TC50171_3", Offset = 0, Limit = 10, Sort = "id:asc, submitTimeUtc:asc" }; var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new SearchTransactionsApi(clientConfig); var result = apiInstance.CreateSearch(requestObj); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API: " + e.Message); } }
public static TssV2TransactionsPost201Response Run() { bool save = false; string name = "MRN"; string timezone = "America/Chicago"; string query = "clientReferenceInformation.code:TC50171_3 AND submitTimeUtc:[NOW/DAY-7DAYS TO NOW/DAY+1DAY}"; int offset = 0; int limit = 100; string sort = "id:asc,submitTimeUtc:asc"; var requestObj = new CyberSource.Model.CreateSearchRequest( Save: save, Name: name, Timezone: timezone, Query: query, Offset: offset, Limit: limit, Sort: sort ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new SearchTransactionsApi(clientConfig); TssV2TransactionsPost201Response result = apiInstance.CreateSearch(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }