models.go raw
1 package notifications
2
3 import "github.com/getAlby/hub/nip47/models"
4
5 type Notification struct {
6 Notification interface{} `json:"notification,omitempty"`
7 NotificationType string `json:"notification_type"`
8 }
9
10 const (
11 PAYMENT_RECEIVED_NOTIFICATION = "payment_received"
12 PAYMENT_SENT_NOTIFICATION = "payment_sent"
13 HOLD_INVOICE_ACCEPTED_NOTIFICATION = "hold_invoice_accepted"
14 )
15
16 type PaymentSentNotification struct {
17 models.Transaction
18 }
19
20 type PaymentReceivedNotification struct {
21 models.Transaction
22 }
23
24 type HoldInvoiceAcceptedNotification struct {
25 models.Transaction
26 }
27