aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/SavedPayment.hs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/Common/Model/SavedPayment.hs')
-rw-r--r--common/src/Common/Model/SavedPayment.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/src/Common/Model/SavedPayment.hs b/common/src/Common/Model/SavedPayment.hs
new file mode 100644
index 0000000..f45c479
--- /dev/null
+++ b/common/src/Common/Model/SavedPayment.hs
@@ -0,0 +1,17 @@
+module Common.Model.SavedPayment
+ ( SavedPayment(..)
+ ) where
+
+import Data.Aeson (FromJSON, ToJSON)
+import GHC.Generics (Generic)
+
+import Common.Model.Payment (Payment)
+import Common.Model.PaymentCategory (PaymentCategory)
+
+data SavedPayment = SavedPayment
+ { _savedPayment_payment :: Payment
+ , _savedPayment_paymentCategory :: PaymentCategory
+ } deriving (Show, Generic)
+
+instance FromJSON SavedPayment
+instance ToJSON SavedPayment