blob: b5b62561ba59284c7dc17f2d720005375a4c3289 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{-# LANGUAGE DeriveGeneric #-}
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
|