blob: d2c223fda7554457817939ba9be14a01984ff256 (
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.EditPayment
( EditPayment(..)
) 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)
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
|