Line 0
Link Here
|
|
|
1 |
{ |
2 |
"type": "object", |
3 |
"allOf": [ |
4 |
{ "$ref": "../definitions.json#/patron" }, |
5 |
{ |
6 |
"type": "object", |
7 |
"properties": { |
8 |
"blocks": { |
9 |
"type": "object", |
10 |
"properties": { |
11 |
"Patron::CardExpired": { |
12 |
"description": "Patron's card has been expired.", |
13 |
"type": "object", |
14 |
"properties": { |
15 |
"expiration_date": { |
16 |
"type": ["string", "null"] |
17 |
} |
18 |
} |
19 |
}, |
20 |
"Patron::CardLost": { |
21 |
"description": "Patron's card has been marked as lost.", |
22 |
"type": "object", |
23 |
"properties": {} |
24 |
}, |
25 |
"Patron::Debarred": { |
26 |
"description": "Patron is debarred.", |
27 |
"type": "object", |
28 |
"properties": { |
29 |
"expiration_date": { |
30 |
"type": ["string", "null"] |
31 |
}, |
32 |
"comment": { |
33 |
"type": ["string", "null"] |
34 |
} |
35 |
} |
36 |
}, |
37 |
"Patron::DebarredOverdue": { |
38 |
"description": "Patron has overdues and is debarred.", |
39 |
"type": "object", |
40 |
"properties": { |
41 |
"number_of_overdues": { |
42 |
"type": ["integer", "null"] |
43 |
} |
44 |
} |
45 |
}, |
46 |
"Patron::Debt": { |
47 |
"description": "Patron's debts exceed maximum allowed amount.", |
48 |
"type": "object", |
49 |
"properties": { |
50 |
"max_outstanding":{ |
51 |
"type": ["number", "null"] |
52 |
}, |
53 |
"current_outstanding": { |
54 |
"type": ["number", "null"] |
55 |
} |
56 |
} |
57 |
}, |
58 |
"Patron::DebtGuarantees": { |
59 |
"description": "Patron's guarantees' debts exceed maximum allowed amount.", |
60 |
"type": "object", |
61 |
"properties": { |
62 |
"max_outstanding":{ |
63 |
"type": ["number", "null"] |
64 |
}, |
65 |
"current_outstanding": { |
66 |
"type": ["number", "null"] |
67 |
} |
68 |
} |
69 |
}, |
70 |
"Patron::GoneNoAddress": { |
71 |
"type": "object", |
72 |
"properties": {} |
73 |
} |
74 |
} |
75 |
} |
76 |
} |
77 |
} |
78 |
] |
79 |
} |