-- | Updates an object's sublist in Netsuite.
updateSublistNS
    :: (IsNsRestletConfig cfg, IsNsSubtype st, IsNsId a, IsNsData d)
    => cfg -- ^ Restlet configuration
    -> st -- ^ NetSuite entity subtype
    -> a -- ^ Entity ID
    -> [d] -- ^ List of sublist items to update sublist with
    -> IO (Either RestletError Value)
updateSublistNS cfg st i d =
    doNS (toNsRestletConfig cfg) $
        NsActUpdateSublist (toNsSubtype st) (toNsId i) (map toNsData d)
updateSublistNS
    :: (IsNsRestletConfig cfg, IsNsSubtype st, IsNsId a, IsNsData d)
    => cfg -- ^ Restlet configuration
    -> st -- ^ NetSuite entity subtype
    -> a -- ^ Entity ID
    -> [d] -- ^ List of sublist items to update sublist with
    -> IO (Either RestletError Value)
updateSublistNS cfg st i d =
    doNS (toNsRestletConfig cfg) $
        NsActUpdateSublist (toNsSubtype st) (toNsId i) (map toNsData d)
updateSublistNS cfg st i d =
    doNS (toNsRestletConfig cfg) $
        NsActUpdateSublist (toNsSubtype st) (toNsId i) (map toNsData d)