aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/IncomePage.hs
blob: c3f478ed2bd1d9258231adf976dc2dff8392b1a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Common.Model.IncomePage
  ( IncomePage(..)
  ) where

import           Data.Aeson                (FromJSON, ToJSON)
import           GHC.Generics              (Generic)

import           Common.Model.Income       (Income)
import           Common.Model.IncomeHeader (IncomeHeader)

data IncomePage = IncomePage
  { _incomePage_header     :: IncomeHeader
  , _incomePage_incomes    :: [Income]
  , _incomePage_totalCount :: Int
  } deriving (Show, Generic)

instance FromJSON IncomePage
instance ToJSON IncomePage