blob: 60c5423c2046268e1a8d62dd110eee1387c14b99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module Common.Model.CreatePaymentForm
( CreatePaymentForm(..)
) where
import Data.Aeson (FromJSON, ToJSON)
import Data.Text (Text)
import GHC.Generics (Generic)
import Common.Model.Category (CategoryId)
import Common.Model.Frequency (Frequency)
data CreatePaymentForm = CreatePaymentForm
{ _createPaymentForm_name :: Text
, _createPaymentForm_cost :: Text
, _createPaymentForm_date :: Text
, _createPaymentForm_category :: CategoryId
, _createPaymentForm_frequency :: Frequency
} deriving (Show, Generic)
instance FromJSON CreatePaymentForm
instance ToJSON CreatePaymentForm
|