Bug 20942: Split debit and credit lines
[koha.git] / api / v1 / swagger / definitions / patron_balance.json
1 {
2   "type": "object",
3   "properties": {
4     "balance": {
5       "type": "number",
6       "description": "Signed decimal number"
7     },
8     "outstanding_credits": {
9       "properties": {
10         "total": {
11             "type": "number"
12         },
13         "lines": {
14             "type": "array",
15             "items": {
16                 "$ref": "account_line.json"
17             }
18         }
19       }
20     },
21     "outstanding_debits": {
22       "type": "object",
23       "properties": {
24         "total": {
25             "type": "number"
26         },
27         "lines": {
28             "type": "array",
29             "items": {
30                 "$ref": "account_line.json"
31             }
32         }
33       }
34     }
35   },
36   "additionalProperties": false,
37   "required": [
38     "balance"
39   ]
40 }