OVPAY-2394 - Added groupName to NotificationCategory. Added query params.

This commit is contained in:
Bas Boterman 2026-01-12 13:41:20 +01:00
parent 8946026860
commit 68c7ccc279

View File

@ -44,6 +44,13 @@ paths:
type: integer
default: 1
description: Limit the number of subscription activities returned per subscription (default is 1)
- name: expand
in: query
schema:
type: string
enum: [none, notificationPreference, eventTypeChannel]
default: none
description: "Expand nested attributes. Possible values: `none`, `eventType`, and `eventTypeChannel`."
responses:
"200":
description: A list of notification subscriptions
@ -63,6 +70,7 @@ paths:
notificationCategory:
notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
customerProfileId: 1337
subscriptionActivities:
- subscriptionActivityId: 30b32657-1ba1-44e0-8868-4db807695387
@ -77,6 +85,7 @@ paths:
notificationCategory:
notificationCategoryId: 2
name: Nieuwsbrief aanmelding
groupName: Marketing
customerProfileId: 1338
subscriptionActivities:
- subscriptionActivityId: 7fae0d2c-1e20-4f3e-b25d-fd8505a381c4
@ -288,6 +297,24 @@ paths:
- Notification Categories
summary: Get all notification categories.
parameters:
- name: notificationCategoryId
in: query
required: false
schema:
type: integer
description: Filter by notification category ID
- name: name
in: query
required: false
schema:
type: integer
description: Filter by notification category name (case-insensitive, partial match)
- name: groupName
in: query
required: false
schema:
type: integer
description: Filter by notification category group name (case-insensitive, partial match)
- name: expand
in: query
schema:
@ -309,16 +336,20 @@ paths:
notificationCategories:
- notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
- notificationCategoryId: 2
name: Nieuwsbrief aanmelding
groupName: Marketing
- notificationCategoryId: 3
name: Mijn Passen
name: Serviceberichten
groupName: Mijn tokens
getNotifactionCategories?expand=eventType:
summary: Return all the notification categories with nested event types (expand=eventType)
value:
notificationCategories:
- notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
eventTypes:
- eventTypeId: 2
eventOrigin:
@ -338,6 +369,7 @@ paths:
optinRequired: false
- notificationCategoryId: 2
name: Nieuwsbrief aanmelding
groupName: Marketing
eventTypes:
- eventTypeId: 1
eventOrigin:
@ -348,7 +380,8 @@ paths:
prettyName: HTM nieuwsbrief
optinRequired: false
- notificationCategoryId: 3
name: Mijn Passen
name: Serviceberichten
groupName: Mijn tokens
eventTypes:
- eventTypeId: 4
eventOrigin:
@ -372,6 +405,7 @@ paths:
notificationCategories:
- notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
eventTypes:
- eventTypeId: 2
eventOrigin:
@ -417,6 +451,7 @@ paths:
isMandatory: false
- notificationCategoryId: 2
name: Nieuwsbrief aanmelding
groupName: Marketing
eventTypes:
- eventTypeId: 1
eventOrigin:
@ -434,7 +469,8 @@ paths:
isDefault: true
isMandatory: false
- notificationCategoryId: 3
name: Mijn Passen
name: Serviceberichten
groupName: Mijn tokens
eventTypes:
- eventTypeId: 4
eventOrigin:
@ -750,6 +786,7 @@ paths:
notificationCategory:
notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
- eventType:
eventTypeId: 16
eventOrigin:
@ -762,6 +799,7 @@ paths:
notificationCategory:
notificationCategoryId: 1
name: Mijn Reizen
groupName: Mijn tokens
"400":
description: Bad request
content:
@ -1119,6 +1157,9 @@ components:
name:
type: string
example: Mijn Reizen
groupName:
type: string
example: Mijn tokens
eventTypes:
type: array
items: