aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/EditPaymentForm.hs
blob: 168c9ffc7011e3ecdd9d57053f2cad389e863165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Common.Model.EditPaymentForm
  ( EditPaymentForm(..)
  ) where

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

import           Common.Model.Category  (CategoryId)
import           Common.Model.Frequency (Frequency)
import           Common.Model.Payment   (PaymentId)

data EditPaymentForm = EditPaymentForm
  { _editPaymentForm_id        :: PaymentId
  , _editPaymentForm_name      :: Text
  , _editPaymentForm_cost      :: Text
  , _editPaymentForm_date      :: Text
  , _editPaymentForm_category  :: CategoryId
  , _editPaymentForm_frequency :: Frequency
  } deriving (Show, Generic)

instance FromJSON EditPaymentForm
instance ToJSON EditPaymentForm