blob: 1ea978cf18de3a74e055ad796833bfd155e6e2bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module Model.PaymentResource
( PaymentResource(..)
) where
import Common.Model (Payment (..))
import Resource (Resource, resourceCreatedAt, resourceDeletedAt,
resourceEditedAt)
newtype PaymentResource = PaymentResource Payment
instance Resource PaymentResource where
resourceCreatedAt (PaymentResource p) = _payment_createdAt p
resourceEditedAt (PaymentResource p) = _payment_editedAt p
resourceDeletedAt (PaymentResource p) = _payment_deletedAt p
|