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