sk_api_schema 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -1
- data/json/v1.0/payment.json +6 -8
- data/lib/sk_api_schema/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -8,7 +8,7 @@ Also signup to our [Developer Newsletter](http://www.salesking.eu/dev/newsletter
|
|
8
8
|
* add payment_reminder "status" and filter by "status"
|
9
9
|
* add payment "is_partial", replaces the "new_doc_status" parameter on POST create. Partial payments dont close the related document.
|
10
10
|
* add payment "cash_discount", to explicitly set the cash discount amount withdrawn by a client
|
11
|
-
* add "late_fee"
|
11
|
+
* add "late_fee" to payments, for convient creation of a second payment for the last payment_reminder of an invoice
|
12
12
|
|
13
13
|
##2013-04
|
14
14
|
|
data/json/v1.0/payment.json
CHANGED
@@ -57,6 +57,11 @@
|
|
57
57
|
"enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque", "moneybookers", "premium_sms"],
|
58
58
|
"type":"string"
|
59
59
|
},
|
60
|
+
"late_fee":{
|
61
|
+
"title" : "A late fee for an invoice",
|
62
|
+
"description": "Add a late fee if an invoice has payment reminders. We create a second payment for the last reminder and close all others. Set to 0, if you want to waive the fee(has not been paid). In this case all reminders are closed and we also correct the sales+debtor account with the open fees. This is a pure setter-method used in creation!",
|
63
|
+
"type":"number"
|
64
|
+
},
|
60
65
|
"related_object_type":{
|
61
66
|
"description": "Object type of the payments parent. Is the camel-cased base class name: Document for invoice, credit_note",
|
62
67
|
"required":true,
|
@@ -137,14 +142,7 @@
|
|
137
142
|
},
|
138
143
|
{ "rel": "create",
|
139
144
|
"href": "payments",
|
140
|
-
"method": "POST"
|
141
|
-
"properties" : {
|
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"
|
146
|
-
}
|
147
|
-
}
|
145
|
+
"method": "POST"
|
148
146
|
}
|
149
147
|
]
|
150
148
|
}
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 7
|
10
|
+
version: 0.7.7
|
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-05-
|
18
|
+
date: 2013-05-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|