Browse Source

Bug 28272: Fix note_seen, desk_id, cancellation_reason

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 1 year ago
parent
commit
68bb349593
  1. 1
      Koha/Checkout.pm
  2. 1
      Koha/Old/Checkout.pm
  3. 4
      api/v1/swagger/definitions/checkout.json
  4. 8
      api/v1/swagger/definitions/hold.json

1
Koha/Checkout.pm

@ -140,6 +140,7 @@ sub to_api_mapping {
lastreneweddate => 'last_renewed_date',
issuedate => 'checkout_date',
notedate => 'note_date',
noteseen => 'note_seen',
};
}

1
Koha/Old/Checkout.pm

@ -107,6 +107,7 @@ sub to_api_mapping {
lastreneweddate => 'last_renewed_date',
issuedate => 'checkout_date',
notedate => 'note_date',
noteseen => 'note_seen',
};
}

4
api/v1/swagger/definitions/checkout.json

@ -73,6 +73,10 @@
"format": "date",
"description": "Datetime of the issue note"
},
"note_seen": {
"type": ["boolean", "null"],
"description": "has the note been seen already"
},
"issuer": {
"type": [
"object",

8
api/v1/swagger/definitions/hold.json

@ -22,11 +22,19 @@
"type": ["string", "null"],
"description": "Internal library identifier for the pickup library"
},
"desk_id": {
"type": ["integer", "null"],
"description": "The id of the desk"
},
"cancellation_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was cancelled"
},
"cancellation_reason": {
"type": ["string", "null"],
"description": "The reason the hold was cancelled"
},
"notes": {
"type": ["string", "null"],
"description": "Notes related to this hold"

Loading…
Cancel
Save