-- | Retrieves an object's sublists from Netsuite.
fetchSublistNS
    :: (IsNsRestletConfig cfg, IsNsSubtype st, IsNsId a)
    => cfg -- ^ Restlet configuration
    -> st -- ^ NetSuite entity subtype
    -> a -- ^ Entity ID
    -> IO (Either RestletError Value)
fetchSublistNS cfg st i =
    doNS (toNsRestletConfig cfg) $
        NsActFetchSublist (toNsSubtype st)
                          (toNsId i)
                          (typeFields (toNsRestletConfig cfg) $ toNsSubtype st)
fetchSublistNS
    :: (IsNsRestletConfig cfg, IsNsSubtype st, IsNsId a)
    => cfg -- ^ Restlet configuration
    -> st -- ^ NetSuite entity subtype
    -> a -- ^ Entity ID
    -> IO (Either RestletError Value)
fetchSublistNS cfg st i =
    doNS (toNsRestletConfig cfg) $
        NsActFetchSublist (toNsSubtype st)
                          (toNsId i)
                          (typeFields (toNsRestletConfig cfg) $ toNsSubtype st)
fetchSublistNS cfg st i =
    doNS (toNsRestletConfig cfg) $
        NsActFetchSublist (toNsSubtype st)
                          (toNsId i)
                          (typeFields (toNsRestletConfig cfg) $ toNsSubtype st)