Tomas Cohen Arazi
5cd9c904c4
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>
57 lines
1.5 KiB
JSON
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
|
|
}
|