module Common.Model.PaymentPage ( PaymentPage(..) ) where import Data.Aeson (FromJSON, ToJSON) import GHC.Generics (Generic) import Common.Model.Payment (Payment) import Common.Model.PaymentCategory (PaymentCategory) data PaymentPage = PaymentPage { _paymentPage_payments :: [Payment] , _paymentPage_paymentCategories :: [PaymentCategory] , _paymentPage_totalCount :: Int } deriving (Show, Generic) instance FromJSON PaymentPage instance ToJSON PaymentPage