json/v1.0/order.json in sk_api_schema-0.3.2 vs json/v1.0/order.json in sk_api_schema-0.3.3

- old
+ new

@@ -19,10 +19,19 @@ "date":{ "description": "Date the order is issued. Automatically set when order is opened. Required for non-draft documents.", "format":"date", "type":"string" }, + "due_days":{ + "description": "Used to calculate the due date for the document. Useless if date and due date are present.", + "type":"integer" + }, + "due_date":{ + "description": "Auto-calculated from date + due days if empty and the document is opened.", + "format":"date", + "type":"string" + }, "status":{ "description": "Defaults to draft for new documents, unless otherwise stated. For new documents with status 'open' or 'closed' or doc where the status changes away from draft, following fields are set if empty: number(next in number schema), date(today), due date(due_days must be given). Only draft documents can be deleted.", "default":"draft", "enum":["draft","open","closed"], "type":"string" @@ -93,11 +102,11 @@ "format":"date-time", "readonly":true, "type":"string" }, "lock_version":{ - "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version.", + "description": "Auto-incremented to prevent concurrent updates. First save wins and increments version.", "type":"integer" }, "gross_total":{ "description": "Gross total of all line items, 2 decimals places", "readonly":true, @@ -112,11 +121,11 @@ "description": "Net total, 2 decimals places", "readonly":true, "type":"number" }, "net_total_base":{ - "description": "Net total, 6 decimal places. Summmed items net_total_base_raw (incl discount)", + "description": "Net total, 6 decimal places incl. discount", "readonly":true, "type":"number" } }, "links":[ @@ -220,10 +229,11 @@ "href": "orders", "method": "POST", "properties" : { "source" : { "title" : "Source document id", - "description": "Copies the source document(excl. number,date) and returns a new draft document." + "description": "Copies the source document(excl. number,date) and returns a new draft document.", + "type" : "string" } } }, { "rel": "attachments", "href": "orders/{id}/attachments"