-
Notifications
You must be signed in to change notification settings - Fork 19
/
scheduled-notice.json
112 lines (112 loc) · 3.1 KB
/
scheduled-notice.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Scheduled patron notice",
"properties": {
"id": {
"type": "string",
"description": "UUID of scheduled task",
"$ref": "raml-util/schemas/uuid.schema"
},
"loanId": {
"type": "string",
"description": "UUID of related loan for loan notices",
"$ref": "raml-util/schemas/uuid.schema"
},
"requestId": {
"type": "string",
"description": "UUID of related request for request notices",
"$ref": "raml-util/schemas/uuid.schema"
},
"feeFineActionId": {
"type": "string",
"description": "UUID of related action for fee/fine notices",
"$ref": "raml-util/schemas/uuid.schema"
},
"recipientUserId": {
"type": "string",
"description": "Id of the user to whom this notice should be sent to",
"$ref": "raml-util/schemas/uuid.schema"
},
"sessionId": {
"type": "string",
"description": "UUID which is the same for all notices generated in scope of the same check-in/check-out session",
"$ref": "raml-util/schemas/uuid.schema"
},
"nextRunTime": {
"type": "string",
"format": "date-time",
"description": "Next run time"
},
"triggeringEvent": {
"type": "string",
"description": "Scheduled notice triggering event",
"enum": [
"Hold expiration",
"Request expiration",
"Due date",
"Overdue fine returned",
"Overdue fine renewed",
"Due date - with reminder fee",
"Aged to lost",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted",
"Title level request expiration"
]
},
"noticeConfig": {
"type": "object",
"description": "Scheduled notice configuration",
"properties": {
"timing": {
"type": "string",
"description": "Timing represents when we need to send notice, before, at or after loan due date",
"enum": [
"Upon At",
"Before",
"After"
]
},
"recurringPeriod": {
"type": "object",
"$ref": "period.json",
"description": "Interval for recurring events"
},
"templateId": {
"type": "string",
"description": "UUID of related template",
"$ref": "raml-util/schemas/uuid.schema"
},
"format": {
"type": "string",
"description": "Notice format",
"enum": [
"Email",
"SMS",
"Print"
]
},
"sendInRealTime": {
"type": "boolean",
"description": "Real time notice flag"
}
},
"additionalProperties": false,
"required": [
"timing",
"templateId",
"format"
]
},
"metadata": {
"$ref": "raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"nextRunTime",
"noticeConfig"
]
}