-- | Fetches an Invoice PDF by ID.
invoicePdfNS
    :: (IsNsRestletConfig cfg, IsNsId a)
    => cfg -- ^ Restlet configuration
    -> a -- ^ Invoice entity ID
    -> IO (Either RestletError Value)
invoicePdfNS cfg i =
    doNS (toNsRestletConfig cfg) $
        NsActInvoicePDF (toNsId i)
invoicePdfNS
    :: (IsNsRestletConfig cfg, IsNsId a)
    => cfg -- ^ Restlet configuration
    -> a -- ^ Invoice entity ID
    -> IO (Either RestletError Value)
invoicePdfNS cfg i =
    doNS (toNsRestletConfig cfg) $
        NsActInvoicePDF (toNsId i)
invoicePdfNS cfg i =
    doNS (toNsRestletConfig cfg) $
        NsActInvoicePDF (toNsId i)