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

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

data CreateIncomeForm = CreateIncomeForm
  { _createIncomeForm_amount :: Text
  , _createIncomeForm_date   :: Text
  } deriving (Show, Generic)

instance FromJSON CreateIncomeForm
instance ToJSON CreateIncomeForm