diff options
author | Joris | 2019-10-09 23:16:00 +0200 |
---|---|---|
committer | Joris | 2019-10-09 23:16:04 +0200 |
commit | 7529a18ff0ac443e7f9764b5e2d0f57a5d3a850b (patch) | |
tree | 3d5cfc1f2318c2d4f889ee70764929f1a96e4c41 /common/src/Common/Model/EditPaymentForm.hs | |
parent | e5ac82f4808e974dec5f19fc6f059efaa5214022 (diff) |
Use common payment validation in the backend
Remove deprecated backend validation
Diffstat (limited to 'common/src/Common/Model/EditPaymentForm.hs')
-rw-r--r-- | common/src/Common/Model/EditPaymentForm.hs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/common/src/Common/Model/EditPaymentForm.hs b/common/src/Common/Model/EditPaymentForm.hs new file mode 100644 index 0000000..168c9ff --- /dev/null +++ b/common/src/Common/Model/EditPaymentForm.hs @@ -0,0 +1,23 @@ +module Common.Model.EditPaymentForm + ( EditPaymentForm(..) + ) where + +import Data.Aeson (FromJSON, ToJSON) +import Data.Text (Text) +import GHC.Generics (Generic) + +import Common.Model.Category (CategoryId) +import Common.Model.Frequency (Frequency) +import Common.Model.Payment (PaymentId) + +data EditPaymentForm = EditPaymentForm + { _editPaymentForm_id :: PaymentId + , _editPaymentForm_name :: Text + , _editPaymentForm_cost :: Text + , _editPaymentForm_date :: Text + , _editPaymentForm_category :: CategoryId + , _editPaymentForm_frequency :: Frequency + } deriving (Show, Generic) + +instance FromJSON EditPaymentForm +instance ToJSON EditPaymentForm |