Koha/api/v1/swagger/definitions/patron_account_credit.json
Tomas Cohen Arazi 986a52d718 Bug 21786: (QA follow-up) library_id can be null
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-08 15:50:51 +00:00

43 lines
1.1 KiB
JSON

{
"type": "object",
"properties": {
"credit_type": {
"type": "string",
"description": "Type of credit ('credit', 'forgiven', 'lost_item_return', 'payment', 'writeoff' )"
},
"amount": {
"type": "number",
"minimum": 0,
"description": "Credit amount"
},
"library_id": {
"type": [ "string", "null" ],
"description": "Internal identifier for the library in which the transaction took place"
},
"account_lines_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "List of account line ids the credit goes against (optional)"
},
"payment_type": {
"type": "string",
"description": "Payment type (only applies when credit_type=payment)"
},
"date": {
"type": "string",
"format": "date",
"description": "Date the credit was recorded (optional)"
},
"description": {
"type": "string",
"description": "Description"
},
"note": {
"type": "string",
"description": "Internal note"
}
},
"required": [ "amount" ]
}