Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ data FCMNotificationType
| REFUND_FAILED
| FULFILLMENT_PENDING
| FULFILLMENT_SUCCESS
| TICKET_ACTIVATED
deriving (Show, Eq, Read, Ord, Generic, ToJSON, FromJSON)
deriving (PrettyShow) via Showable FCMNotificationType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ interfaceCategoryToFCMNotificationType = \case
Interface.REFUND_FAILED -> FCM.REFUND_FAILED
Interface.FULFILLMENT_PENDING -> FCM.FULFILLMENT_PENDING
Interface.FULFILLMENT_SUCCESS -> FCM.FULFILLMENT_SUCCESS
Interface.TICKET_ACTIVATED -> FCM.TICKET_ACTIVATED

interfaceShowNotificationToFCMShowNotification :: Interface.ShowNotification -> FCM.FCMShowNotification
interfaceShowNotificationToFCMShowNotification = \case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ data Category
| REFUND_FAILED
| FULFILLMENT_PENDING
| FULFILLMENT_SUCCESS
| TICKET_ACTIVATED
deriving (Show, Eq, Read, Generic, Ord, ToSchema, ToJSON, FromJSON)

$(mkBeamInstancesForEnum ''Category)
Expand Down