ItemGroups

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroup Record Count. Returns number of records in QuickBooks
    ''' In case of error returns: will return -1
    ''' </summary>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupRecordCount(Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As Integer

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get All ItemGroup. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET ItemGroup BY DATERANGE
    ''' </summary>
    ''' <param name="ActiveStatus">qbActiveStatus enum. Values (ActiveOnly [DEFAULT], InactiveOnly, All)</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetAllItemGroup(Optional ByVal ActiveStatus As qbActiveStatus = qbActiveStatus.All, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroup By ListIDs. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET ItemGroup BY DATERANGE
    ''' </summary>
    ''' <param name="ListIDs">ListIDs of the ItemGroup. If it is one ListIDs, just add one ListID to the List(Of String)</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByListIDs(ByVal ListIDs As List(Of String), Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroup By FullNames. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' NOTE: IF YOU HAVE TOO MANY RECORDS GET ItemGroup BY DATERANGE
    ''' </summary>
    ''' <param name="FullNames">FullNames of the ItemGroup. If it is one FullNames, just add one FullNames to the List(Of String)</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByFullNames(ByVal FullNames As List(Of String), Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroups By DateRange. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="FromModifiedDate">FromDate</param>
    ''' <param name="ToModifiedDate">ToDate</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupsByDateRange(ByVal FromModifiedDate As DateTime, ByVal ToModifiedDate As DateTime, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroups By Name. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="Name">ItemGroup Name</param>
    ''' <param name="MatchCriterion">qbMatchCriterion enum. Values(StartsWith, Contains, EndsWith)</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByName(ByVal Name As String, ByVal MatchCriterion As qbMatchCriterion, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroups By NameRange. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="FromName">FromName value</param>
    ''' <param name="ToName">ToName value.</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByNameRange(ByVal FromName As String, ByVal ToName As String, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroupBy Class ListIDs. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="ListIDs">Entities ListIDs</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByClassListIDs(ByVal ListIDs As List(Of String), Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroupBy Class FullNames. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="FullNames">Entities FullNames</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByClassFullNames(ByVal FullNames As List(Of String), Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroupBy Class ListIDWithChildren. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="ListIDWithChildren">Class ListIDWithChildren</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByClassListIDWithChildren(ByVal ListIDWithChildren As String, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

   ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get ItemGroupBy Class FullNameWithChildren. Returns List(Of ItemGroup)
    ''' In case of error returns: new List(Of ItemGroup)
    ''' </summary>
    ''' <param name="FullNameWithChildren">Class FullNameWithChildren</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetItemGroupByClassFullNameWithChildren(ByVal FullNameWithChildren As String, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of ItemGroup)

   ''' <summary>
    ''' It will delete the record from QuickBooks.
    ''' Once deleted, there is no way to retrieve
    ''' </summary>
    ''' <param name="ListID">to add new records to QB set ListID to a temporal one</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function DeleteItemGroupFromQuickBooksByListID(ByVal ListID As String, Optional ByRef errorMsg As String = "") As Boolean

    ''' <summary>
    ''' It will add a new ItemGroup to ItemGroupList.
    ''' CustomField1-CustomField15: Fotmat[CustomFieldName:CustomFieldValue]
    ''' </summary>
    ''' <param name="_ListID">to add new records to QB set ListID to a temporal one</param>
    ''' <param name="_Operation">set to empty, update, add, or delete</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function AddToItemGroupList(_ListID As String, _Name As String, Optional ByVal _TimeCreated As String = "", Optional ByVal _TimeModified As String = "", Optional ByVal _EditSequence As String = "", Optional ByVal _IsActive As String = "", Optional ByVal _BarCodeValue As String = "", Optional ByVal _UnitOfMeasureSetRef_ListID As String = "", Optional ByVal _UnitOfMeasureSetRef_FullName As String = "", Optional ByVal _ItemDesc As String = "", Optional ByVal _IsPrintItemsInGroup As String = "", Optional ByVal _SpecialItemType As String = "", Optional ByVal _ExternalGUID As String = "", Optional ByVal _UserData As String = "", Optional ByVal _Operation As String = "", Optional ByRef errorMsg As String = "") As ItemGroup

Powered by BetterDocs