sk_api_schema 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +4 -0
- data/json/v1.0/invoice.json +2 -2
- data/json/v1.0/line_item.json +8 -0
- data/lib/sk_api_schema/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
See [commit messages](https://github.com/salesking/sk_api_schema/commits/) for details.
|
|
4
4
|
Also sign up to our [Developer Newsletter](http://www.salesking.eu/dev/newsletter/) to stay up-to-date !!!
|
|
5
5
|
|
|
6
|
+
##2013-10
|
|
7
|
+
|
|
8
|
+
* add net_total, gross_total to line item
|
|
9
|
+
|
|
6
10
|
##2013-08
|
|
7
11
|
|
|
8
12
|
* fix docs for POST invoices/ID/payments to create payments
|
data/json/v1.0/invoice.json
CHANGED
|
@@ -301,12 +301,12 @@
|
|
|
301
301
|
"properties" : {
|
|
302
302
|
"source" : {
|
|
303
303
|
"title" : "Source document id",
|
|
304
|
-
"description": "Copies the source(excl. number,date) and returns a new draft document.
|
|
304
|
+
"description": "Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. When copying a different document type e.g. creating an invoice from an order(pass an order ID), ONLY the items, contact, currency and tag list are taken from the source doc.",
|
|
305
305
|
"type" : "string"
|
|
306
306
|
},
|
|
307
307
|
"cancel" : {
|
|
308
308
|
"title" : "Cancel an invoice",
|
|
309
|
-
"description": "Cancelling a document copies the source and negates all line item values. A source id
|
|
309
|
+
"description": "Cancelling a document copies the source and negates all line item values. A source id MUST be set.",
|
|
310
310
|
"dependencies": ["source"],
|
|
311
311
|
"type":"boolean"
|
|
312
312
|
}
|
data/json/v1.0/line_item.json
CHANGED
|
@@ -40,6 +40,14 @@
|
|
|
40
40
|
"description": "Net price of a single item",
|
|
41
41
|
"type":"number"
|
|
42
42
|
},
|
|
43
|
+
"net_total":{
|
|
44
|
+
"description": "Net price of a single item",
|
|
45
|
+
"type":"number"
|
|
46
|
+
},
|
|
47
|
+
"gross_total":{
|
|
48
|
+
"description": "Gross price ",
|
|
49
|
+
"type":"number"
|
|
50
|
+
},
|
|
43
51
|
"tax":{
|
|
44
52
|
"description": "Tax percent for a single item.",
|
|
45
53
|
"type":"number"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sk_api_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 51
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.8.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Georg Leciejewski
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-
|
|
18
|
+
date: 2013-10-16 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
type: :runtime
|