Plentymarkets interface documentation
Notifications
Contracts
NotificationsRepositoryContract
Plugin Notifications Service
Namespace
Plenty\Modules\Notifications\Contracts
Methods
public addNotification($notificationBuiltWithNotificationBuilder):array
Add a Notification in the system
Name |
Type |
Description |
|
An array built with NotificationBuilder::build() method |
public fetchNotifications($queryBuiltWithNotificationsQueryBuilder, $page, $itemsPerPage):Plenty\Repositories\Models\UnspecifiedLengthPaginationResponse
Return type: UnspecifiedLengthPaginationResponse
Fetch a list of short/incomplete notifications, containing only the subject. To be used for listing purposes.
Name |
Type |
Description |
|
An array built with NotificationsQueryBuilder::build() method |
|
|
The page number, starting from 1 |
|
|
The number of notifications per page |
public fetchNotificationsDetails($notificationsFetchDetailsQuery):array
Fetch all the details of a Notification based on its id.
Name |
Type |
Description |
|
An array built with NotificationsFetchDetailsQueryBuilder::build() method |
public acknowledgeNotifications($queryBuiltWithNotificationsAcknowledgeQueryBuilder):bool
Mark a Notification as acknowledged.
Name |
Type |
Description |
|
An array built with NotificationsAcknowledgeQueryBuilder::build() method |
public getNotificationsCount($queryBuiltWithNotificationsQueryBuilder):int
Retrieve the current unread Notifications count
Name |
Type |
Description |
|
An array built with NotificationsQueryBuilder::build() method |