Koha/api/v1/swagger/definitions/invoice.json
Tomas Cohen Arazi 5cd9c904c4
Bug 18731: OpenAPI definitions
This patch introduces the OpenAPI definitions required for the orders
endpoint. It matches the voted RFC.

Sponsored-by: Camden County
Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-09 16:25:57 +00:00

57 lines
1.5 KiB
JSON

{
"type": "object",
"properties": {
"invoice_id": {
"type": "integer",
"description": "Internal identifier for the incoide. Generated on POST"
},
"invoice_number": {
"type": "string",
"description": "Invoice number assigned by the vendor"
},
"vendor_id": {
"type": "integer",
"description": "Internal identifier for the vendor"
},
"shipping_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date of shipping"
},
"invoice_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date of billing"
},
"closed": {
"type": "boolean",
"description": "If the invoice is closed"
},
"close_date": {
"type": "string",
"format": "date",
"description": "Invoice close date (only when the invoice is closed)"
},
"shipping_cost": {
"type": [
"integer",
"null"
],
"description": "Shipping cost"
},
"shipping_cost_budget_id": {
"type": [
"integer",
"null"
],
"description": "Shipping cost linking to budget"
}
},
"additionalProperties": false
}