sk_api_schema 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  See [commit messages](https://github.com/salesking/sk_api_schema/commits/) for details.
4
4
  Also signup to our [Developer Newsletter](http://www.salesking.eu/dev/newsletter/) to stay up-to-date !!!
5
5
 
6
+ ##2013-05
7
+
8
+ * add is_partial, cash_discount to payments
9
+ * add late_fee param to create(POST) payments, creating an own payment for the last payment_reminder of an invoice
10
+
6
11
  ##2013-04
7
12
 
8
13
  * filter attachments by related_object_type
@@ -16,6 +16,15 @@
16
16
  "required":true,
17
17
  "type":"number"
18
18
  },
19
+ "cash_discount":{
20
+ "description": "The cash discount amount. If a client withdraws a cash discount say 2% of 100€, he pays 98€ used in amount and 2€ in cash_discount. Handled separate for correction of sales,vat accounts in bookkeeping.",
21
+ "type":"number"
22
+ },
23
+ "is_partial":{
24
+ "description": "If set the related document is NOT closed.",
25
+ "type":"boolean",
26
+ "default": false
27
+ },
19
28
  "external_ref":{
20
29
  "description": "Reference number f.ex. issued by the bank.",
21
30
  "type":"string",
@@ -130,11 +139,10 @@
130
139
  "href": "payments",
131
140
  "method": "POST",
132
141
  "properties" : {
133
- "new_doc_status":{
134
- "title" : "New status for document",
135
- "description": "Convenience method to close a document with a payment.",
136
- "enum": ["open","closed"],
137
- "type":"string"
142
+ "late_fee":{
143
+ "title" : "The paid late fee for an invoice",
144
+ "description": "If an invoice has payment reminders with a late fee, add the late fee here if it was paid. We create a second payment for the last reminder and close it.",
145
+ "type":"number"
138
146
  }
139
147
  }
140
148
  }
@@ -1,7 +1,7 @@
1
1
  module SK
2
2
  module Api
3
3
  class Schema
4
- VERSION='0.7.4'
4
+ VERSION='0.7.5'
5
5
  end
6
6
  end
7
7
  end
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 4
10
- version: 0.7.4
9
+ - 5
10
+ version: 0.7.5
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-04-30 00:00:00 Z
18
+ date: 2013-05-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime