blob: 8860b8429959c17d5ef5282c735cd96adbc2c184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
module Common.Model.EditPayment
( EditPayment(..)
) where
import Data.Aeson (FromJSON, ToJSON)
import Data.Text (Text)
import Data.Time.Calendar (Day)
import GHC.Generics (Generic)
import Common.Model.Category (CategoryId)
import Common.Model.Frequency (Frequency)
import Common.Model.Payment (PaymentId)
data EditPayment = EditPayment
{ _editPayment_id :: PaymentId
, _editPayment_name :: Text
, _editPayment_cost :: Int
, _editPayment_date :: Day
, _editPayment_category :: CategoryId
, _editPayment_frequency :: Frequency
} deriving (Show, Generic)
instance FromJSON EditPayment
instance ToJSON EditPayment
|