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

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

import           Common.Model.Income (IncomeId)

data EditIncomeForm = EditIncomeForm
  { _editIncomeForm_id     :: IncomeId
  , _editIncomeForm_amount :: Text
  , _editIncomeForm_date   :: Text
  } deriving (Show, Generic)

instance FromJSON EditIncomeForm
instance ToJSON EditIncomeForm