/** *AUTO_GENERATED */ public SearchInvoicesResponse SearchInvoices(SearchInvoicesRequest searchInvoicesRequest, string apiUserName) { string response = Call("SearchInvoices", searchInvoicesRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return SearchInvoicesResponse.CreateInstance(util.ParseNVPString(response), "", -1); }
/// <summary> /// /// </summary> ///<param name="searchInvoicesRequest"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public SearchInvoicesResponse SearchInvoices(SearchInvoicesRequest searchInvoicesRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, searchInvoicesRequest.ToNVPString(string.Empty), ServiceName, "SearchInvoices", credential); ((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "Invoice"; NVPUtil util = new NVPUtil(); return SearchInvoicesResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1); }
/** *AUTO_GENERATED */ public SearchInvoicesResponse SearchInvoices(SearchInvoicesRequest searchInvoicesRequest, string apiUserName) { IAPICallPreHandler apiCallPreHandler = null; apiCallPreHandler = new PlatformAPICallPreHandler(searchInvoicesRequest.ToNVPString(string.Empty), ServiceName, "SearchInvoices", apiUserName, getAccessToken(), getAccessTokenSecret()); ((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; string response = Call(apiCallPreHandler); NVPUtil util = new NVPUtil(); return SearchInvoicesResponse.CreateInstance(util.ParseNVPString(response), string.Empty, -1); }