Bug 21786: Add library_id to the spec definitions
[koha.git] / api / v1 / swagger / definitions / account_line.json
1 {
2   "type": "object",
3   "properties": {
4     "account_line_id": {
5       "type": "integer",
6       "description": "Internal account line identifier"
7     },
8     "checkout_id": {
9       "type": [
10         "integer",
11         "null"
12       ],
13       "description": "Internal identifier for the checkout the account line is related to"
14     },
15     "patron_id": {
16       "type": "integer",
17       "description": "Internal identifier for the patron the account line belongs to"
18     },
19     "item_id": {
20       "type": [
21         "integer",
22         "null"
23       ],
24       "description": "Internal identifier for the item the account line is related to"
25     },
26     "date": {
27       "type": "string",
28       "format": "date",
29       "description": "Date the account line was created"
30     },
31     "amount": {
32       "type": "number",
33       "description": "Account line amount"
34     },
35     "description": {
36       "type": [
37         "string",
38         "null"
39       ],
40       "description": "Account line description"
41     },
42     "account_type": {
43       "type": "string",
44       "description": "Account line type"
45     },
46     "payment_type": {
47       "type": [
48         "string",
49         "null"
50       ],
51       "description": "Payment type"
52     },
53     "amount_outstanding": {
54       "type": "number",
55       "description": "Outstanding amount"
56     },
57     "last_increment": {
58       "type": [
59         "number",
60         "null"
61       ],
62       "description": "The amount the line was increased last time"
63     },
64     "timestamp": {
65       "type": "string",
66       "format": "date-time",
67       "description": "Timestamp for the latest line update"
68     },
69     "internal_note": {
70       "type": [
71         "string",
72         "null"
73       ],
74       "description": "Internal note"
75     },
76     "user_id": {
77       "type": "integer",
78       "description": "Internal patron identifier for the staff member that introduced the account line"
79     },
80     "library_id": {
81       "type": "string",
82       "description": "Internal identifier for the library in which the transaction took place"
83     }
84   }
85 }