04c61551f8165ae50485c7dddd89072aa1b1b894
[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-time",
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": [
44           "string",
45           "null"
46       ],
47       "description": "Account line type"
48     },
49     "debit_type": {
50       "type": [
51           "string",
52           "null"
53       ],
54       "description": "Account line debit type"
55     },
56     "payment_type": {
57       "type": [
58         "string",
59         "null"
60       ],
61       "description": "Payment type"
62     },
63     "amount_outstanding": {
64       "type": "number",
65       "description": "Outstanding amount"
66     },
67     "last_increment": {
68       "type": [
69         "number",
70         "null"
71       ],
72       "description": "The amount the line was increased last time"
73     },
74     "timestamp": {
75       "type": "string",
76       "format": "date-time",
77       "description": "Timestamp for the latest line update"
78     },
79     "internal_note": {
80       "type": [
81         "string",
82         "null"
83       ],
84       "description": "Internal note"
85     },
86     "user_id": {
87       "type": [
88         "integer",
89         "null"
90       ],
91       "description": "Internal patron identifier for the staff member that introduced the account line"
92     },
93     "library_id": {
94       "type": [
95         "string",
96         "null"
97       ],
98       "description": "Internal identifier for the library in which the transaction took place"
99     }
100   }
101 }