blob: 8e2ab73fca9f92c5ce5f8c9b16a9342989c218cb (
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.CreatePayment
( CreatePayment(..)
) where
import Data.Aeson (FromJSON)
import Data.Text (Text)
import Data.Time.Calendar (Day)
import GHC.Generics (Generic)
import Common.Model.Category (CategoryId)
import Common.Model.Frequency (Frequency)
data CreatePayment = CreatePayment
{ _createPayment_name :: Text
, _createPayment_cost :: Int
, _createPayment_date :: Day
, _createPayment_category :: CategoryId
, _createPayment_frequency :: Frequency
} deriving (Show, Generic)
instance FromJSON CreatePayment
|