TG settlement service

This commit is contained in:
Stephan D
2026-01-02 14:54:18 +01:00
parent ea1c69f14a
commit 743f683d92
82 changed files with 4693 additions and 503 deletions

View File

@@ -81,6 +81,9 @@ func StringToNotificationAction(s string) (nm.NotificationAction, error) {
nm.NADeleted,
nm.NAAssigned,
nm.NAPasswordReset,
nm.NAConfirmationRequest,
nm.NAPaymentGatewayIntent,
nm.NAPaymentGatewayExecution,
nm.NADiscoveryServiceAnnounce,
nm.NADiscoveryGatewayAnnounce,
nm.NADiscoveryHeartbeat,
@@ -99,8 +102,15 @@ func StringToNotificationEvent(eventType, eventAction string) (NotificationEvent
return nil, err
}
ea, err := StringToNotificationAction(eventAction)
if err != nil {
return nil, err
if err == nil {
return NewNotification(et, ea), nil
}
return NewNotification(et, ea), nil
if et == mservice.Confirmations {
action := strings.TrimSpace(eventAction)
if action == "" {
return nil, err
}
return &NotificationEventImp{nType: et, nAction: nm.NotificationAction(action)}, nil
}
return nil, err
}