Bug 29620: Move the OpenAPI spec to YAML format
[koha.git] / api / v1 / swagger / definitions / invoice.yaml
1 ---
2 type: object
3 properties:
4   invoice_id:
5     type: integer
6     description: Internal identifier for the incoide. Generated on POST
7   invoice_number:
8     type: string
9     description: Invoice number assigned by the vendor
10   vendor_id:
11     type: integer
12     description: Internal identifier for the vendor
13   shipping_date:
14     type:
15       - string
16       - "null"
17     format: date
18     description: Date of shipping
19   invoice_date:
20     type:
21       - string
22       - "null"
23     format: date
24     description: Date of billing
25   closed:
26     type: boolean
27     description: If the invoice is closed
28   close_date:
29     type: string
30     format: date
31     description: Invoice close date (only when the invoice is closed)
32   shipping_cost:
33     type:
34       - integer
35       - "null"
36     description: Shipping cost
37   shipping_cost_budget_id:
38     type:
39       - integer
40       - "null"
41     description: Shipping cost linking to budget
42 additionalProperties: false