1 /**
2 * @schema AdminNotification
3 * type: object
4 * description: The notification's details.
5 * x-schemaName: AdminNotification
6 * required:
7 * - id
8 * - to
9 * - channel
10 * - template
11 * - provider_id
12 * - created_at
13 * properties:
14 * id:
15 * type: string
16 * title: id
17 * description: The notification's ID.
18 * to:
19 * type: string
20 * title: to
21 * description: Where to send the notification to. For example, if `channel` is `email`, this can be an email number.
22 * channel:
23 * type: string
24 * title: channel
25 * description: Through which channel is the notification sent through.
26 * example: email
27 * template:
28 * type: string
29 * title: template
30 * description: The ID of the template in a third-party service used as the notification's shape.
31 * data:
32 * type: object
33 * description: Data payload to send with the notification.
34 * trigger_type:
35 * type: string
36 * title: trigger_type
37 * description: What triggered this notification.
38 * example: order.created
39 * resource_id:
40 * type: string
41 * title: resource_id
42 * description: The ID of the associated resource. For example, if the notification was triggered because an order was created, this would be the ID of the order.
43 * resource_type:
44 * type: string
45 * title: resource_type
46 * description: The type of the resource that triggered the notification.
47 * example: order
48 * receiver_id:
49 * type: string
50 * title: receiver_id
51 * description: The ID of the user or customer that's receiving this notification.
52 * original_notification_id:
53 * type: string
54 * title: original_notification_id
55 * description: The ID of the original notification, if this notification is resent.
56 * external_id:
57 * type: string
58 * title: external_id
59 * description: The ID of the notification in an external or third-party system.
60 * provider_id:
61 * type: string
62 * title: provider_id
63 * description: The ID of the provider used to send the notification.
64 * created_at:
65 * type: string
66 * format: date-time
67 * title: created_at
68 * description: The date the notification was created.
69 *
70 */
71