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

import           Data.Aeson          (FromJSON)
import           Data.Time.Calendar  (Day)
import           GHC.Generics        (Generic)

import           Common.Model.Income (IncomeId)

data EditIncome = EditIncome
  { _editIncome_id     :: IncomeId
  , _editIncome_date   :: Day
  , _editIncome_amount :: Int
  } deriving (Show, Generic)

instance FromJSON EditIncome