public static XElement ByRefNumberCaseSensitive <T>(List <string> RefNumberList) { XElement xElement = new XElement(typeof(T).Name + "QueryRq"); foreach (string RefNumberCaseSensitive in RefNumberList) { xElement.Add(RefNumberCaseSensitive.ToQBXML(nameof(RefNumberCaseSensitive))); } return(xElement); }
public virtual XElement GenerateQueryRq() { XElement xElement = new XElement(typeof(T).Name + "QueryRq"); xElement.Add(TxnID?.ToQBXML(nameof(TxnID))); xElement.Add(RefNumber?.ToQBXML(nameof(RefNumber))); xElement.Add(RefNumberCaseSensitive?.ToQBXML(nameof(RefNumberCaseSensitive))); xElement.Add(MaxReturned?.ToQBXML(nameof(MaxReturned))); xElement.Add(ModifiedDateRangeFilter?.ToQBXML(nameof(ModifiedDateRangeFilter))); xElement.Add(TxnDateRangeFilter?.ToQBXML(nameof(TxnDateRangeFilter))); xElement.Add(EntityFilter?.ToQBXML(nameof(EntityFilter))); xElement.Add(AccountFilter?.ToQBXML(nameof(AccountFilter))); xElement.Add(MatchFilter?.ToQBXML(nameof(MatchFilter))); xElement.Add(MatchRangeFilter?.ToQBXML(nameof(MatchRangeFilter))); xElement.Add(CurrencyFilter?.ToQBXML(nameof(CurrencyFilter))); xElement.Add(OwnerID?.ToQBXML(nameof(OwnerID))); return(xElement); }