public string AddPurchaseOrder() { var xml = new QBXMLConverter().GetPurchaseOrderXML(); return(ProcessRequest(xml)); }
public string AddItem(object item) { var converter = new QBXMLConverter(); string xml = converter.ConvertItem(item); return(ProcessRequest(xml)); }
public string SearchItemsByNamePrefixAndDateModified(List <string> prefix, DateTime startDate, DateTime endDate) { var converter = new QBXMLConverter(); var xml = converter.ConvertItemQueryByDateRangePrefix(prefix, startDate, endDate); return(ProcessRequest(xml)); }
public List <Customer> GetActiveCustomers() { var converter = new QBXMLConverter(); string xml = converter.GetCustomersQuery(); string responseXml = ProcessRequest(xml); List <Customer> customers = converter.DeserializeCustomerQueryResponse(responseXml); return(customers); }
public List <PayrollWageItem> GetActivePayrollItemsWage() { var converter = new QBXMLConverter(); var xml = converter.GetPayrollItemQuery(); string responseXml = ProcessRequest(xml); List <PayrollWageItem> payrollItems = converter.DeserializePayrollWageQuery(responseXml); return(payrollItems); }
public List <ItemServiceAddResponse> AddItems <T>(List <T> items) { var converter = new QBXMLConverter(); string xml = converter.ConvertItems(items); string itemAddResponseXml = ProcessRequest(xml); List <ItemServiceAddResponse> response = converter.ConvertItemServiceAddResponse(itemAddResponseXml); return(response); }
public DepositAddResponse AddDeposit <T>(List <T> checks) { var converter = new QBXMLConverter(); string xml = converter.ConvertDeposit(checks); string depositResponseXml = ProcessRequest(xml); DepositAddResponse response = converter.ConvertDepositAddResponse(depositResponseXml); return(response); }
public PurchaseOrderAddResponse AddPurchaseOrder(PurchaseOrder purchaseOrder) { var converter = new QBXMLConverter(); string xml = converter.ConvertPurchaseOrder(purchaseOrder); string purchaseOrderAddResponseXml = ProcessRequest(xml); var response = converter.ConvertPurchaseOrderAddResponse(purchaseOrderAddResponseXml); return(response); }
public List <T> SearchItems <T>(string prefix, DateTime startDate, DateTime endDate) where T : new() { var converter = new QBXMLConverter(); var requestXml = converter.ConvertItemQueryByDateRangePrefix(prefix, startDate, endDate); string responseXml = ProcessRequest(requestXml); var items = converter.DeserializeItemQueryResponse <T>(responseXml); return(items); }
public List <Employee> SearchEmployeesByName(string name) { var converter = new QBXMLConverter(); string xml = converter.ConvertEmployeeQuery(name); string responseXml = ProcessRequest(xml); List <Employee> employees = converter.DeserializeEmployeeQueryResponse(responseXml); return(employees); }
public List <QuickbooksAccount> GetAccountsByType(string type) { var converter = new QBXMLConverter(); string xml = converter.ConvertAccountQuery(type); string responseXml = ProcessRequest(xml); List <QuickbooksAccount> accounts = converter.DeserializeAccountQueryResponse(responseXml); return(accounts); }
public List <Vendor> GetVendorsByType(string vendorType) { var converter = new QBXMLConverter(); var xml = converter.ConvertVendorQuery(vendorType); var responseXml = ProcessRequest(xml); List <Vendor> vendors = converter.DeserializeVendorQueryResponse(responseXml); List <Vendor> filteredVendors = vendors.Where(x => x.Type == vendorType).ToList(); return(filteredVendors); }
public List <QuickbooksDeposit> GetDepositsByDateRange(DateTime startDate, DateTime endDate) { var converter = new QBXMLConverter(); string xml = converter.ConvertDepositQuery(startDate, endDate); string queryResponseXml = ProcessRequest(xml); DepositQueryResponse response = converter.ConvertDepositQueryResponse(queryResponseXml); var results = new List <QuickbooksDeposit>(); if (response.Status.Code == 0) { results = response.Deposits; } return(results); }
public string DepositCheck() { var xml = new QBXMLConverter().ConvertDeposit(); return(ProcessRequest(xml)); }
public string SearchItemsByDateModified(DateTime startDate, DateTime endDate) { var xml = new QBXMLConverter().ConvertItemQueryByDateRange(startDate, endDate); return(ProcessRequest(xml)); }