json/v1.0/order.json in sk_api_schema-0.7.9 vs json/v1.0/order.json in sk_api_schema-0.8.0
- old
+ new
@@ -79,11 +79,11 @@
"type":"string",
"maxLength": 3,
"minLength": 3
},
"exchange_rate":{
- "description": "The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).",
+ "description": "The exchange rate from the foreign document currency(eg. USD) to the company currency(EUR). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).",
"readonly":true,
"type":"number"
},
"gross_total_exchanged":{
"description": "Exchanged gross total, in your company currency.",
@@ -125,12 +125,21 @@
"type":"string",
"maxLength": 22,
"minLength":22
},
"line_items":{
- "description": "Line items for the document",
+ "description": "DEPRECATED use items",
"type":"array",
"properties":{"$ref":"./line_item.json#properties"}
+ },
+ "items":{
+ "description": "Items for the document. Access items of all types including divider and sub_total items. GOTCHAs when using items instead of line_items: You MUST set the type field(CamelCasesItem class name) on each item. You cannot use both, the items array is stronger.",
+ "type":"array",
+ "default": "any",
+ "minItems": 0,
+ "items": [{ "$ref": "./line_item.json#properties"},
+ { "$ref": "./divider_item.json#properties"},
+ { "$ref": "./sub_total_item.json#properties"}]
},
"created_at":{
"description": "Date the object was created in SK. Never changes afterwards.",
"format":"date-time",
"readonly":true,