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