sk_api_schema 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -5,9 +5,18 @@ Also signup to our [Developer Newsletter](http://www.salesking.eu/dev/newsletter
5
5
 
6
6
  ##2013-08
7
7
 
8
+ * add BCC, CC, FROM fields for email templates
8
9
  * add items array to documents to be used instead of line_items
9
10
  * Deprecate line_items
10
11
 
12
+ ** doc.items vs doc.line_items **
13
+
14
+ ONLY use ONE as long as both items and line_items are present!
15
+ When updating objects we cannot figure out which array changed. In this case we
16
+ prefer line_items for backwards compatibility.
17
+ When using items: make sure to remove line_items before submitting an updated
18
+ document!
19
+
11
20
  ##2013-06
12
21
 
13
22
  * add email filter "status" accepting sent,draft,in_progress strings, dropped sent/status filter
@@ -102,14 +102,13 @@
102
102
  },
103
103
  "filter[to]":{
104
104
  "title" : "To date",
105
- "description": "All objects created at and before the date",
105
+ "description": "All objects created at and before the date. YYYY-MM-DD",
106
106
  "format" : "date",
107
107
  "type" : "string"
108
108
  },
109
109
  "filter[related_object_type]":{
110
110
  "title" : "Related object type",
111
111
  "description": "All objects belonging to the given object type. The singular base class name like: Document, Contact, Export, Message",
112
- "format" : "date",
113
112
  "type" : "string"
114
113
  },
115
114
  "sort_by":{
@@ -73,6 +73,7 @@
73
73
  "maxLength": 255
74
74
  },
75
75
  "birthday":{
76
+ "description": "The birthday. YYYY-MM-DD",
76
77
  "format":"date",
77
78
  "type":"string"
78
79
  },
@@ -233,13 +234,13 @@
233
234
  },
234
235
  "filter[birthday_from]":{
235
236
  "title" : "From birthday date",
236
- "description": "Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day.",
237
+ "description": "Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day. YYYY-MM-DD",
237
238
  "format" : "date",
238
239
  "type" : "string"
239
240
  },
240
241
  "filter[birthday_to]":{
241
242
  "title" : "To birthday date",
242
- "description": "Contacts with a birthday date before and on the date.",
243
+ "description": "Contacts with a birthday date before and on the date. YYYY-MM-DD",
243
244
  "format" : "date",
244
245
  "type" : "string"
245
246
  },
@@ -71,13 +71,13 @@
71
71
  },
72
72
  "filter[from]":{
73
73
  "title" : "From date",
74
- "description": "All objects with a date after the date",
74
+ "description": "All objects with a date after the date. YYYY-MM-DD",
75
75
  "format" : "date",
76
76
  "type" : "string"
77
77
  },
78
78
  "filter[to]":{
79
79
  "title" : "To date",
80
- "description": "All objects with date before the date",
80
+ "description": "All objects with date before the date. YYYY-MM-DD",
81
81
  "format" : "date",
82
82
  "type" : "string"
83
83
  },
@@ -91,6 +91,7 @@
91
91
  "maxLength": 255
92
92
  },
93
93
  "birthday":{
94
+ "description": "The birthday. YYYY-MM-DD",
94
95
  "format":"date",
95
96
  "type":"string"
96
97
  },
@@ -213,7 +214,7 @@
213
214
  "type":"text"
214
215
  },
215
216
  "lead_date":{
216
- "description": "Lead date e.g. date of first contact with your company",
217
+ "description": "Lead date e.g. date of first contact with your company. YYYY-MM-DD",
217
218
  "format":"date",
218
219
  "type":"string"
219
220
  },
@@ -269,13 +270,13 @@
269
270
  },
270
271
  "filter[birthday_from]":{
271
272
  "title" : "From birthday date",
272
- "description": "Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day.",
273
+ "description": "Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day. YYYY-MM-DD",
273
274
  "format" : "date",
274
275
  "type" : "string"
275
276
  },
276
277
  "filter[birthday_to]":{
277
278
  "title" : "To birthday date",
278
- "description": "Contacts with a birthday date before and on the date.",
279
+ "description": "Contacts with a birthday date before and on the date. YYYY-MM-DD",
279
280
  "format" : "date",
280
281
  "type" : "string"
281
282
  },
@@ -21,7 +21,7 @@
21
21
  "type":"string"
22
22
  },
23
23
  "date":{
24
- "description": "Date the credit note is issued. Automatically set when document is opened. Required unless doc status is draft.",
24
+ "description": "Date the credit note is issued. Automatically set when document is opened. Required unless doc status is draft. YYYY-MM-DD",
25
25
  "format":"date",
26
26
  "type":"string"
27
27
  },
@@ -30,7 +30,7 @@
30
30
  "type":"integer"
31
31
  },
32
32
  "due_date":{
33
- "description": "Auto-calculated from date + due days if empty and the document is opened.",
33
+ "description": "Auto-calculated from date + due days if empty and the document is opened. YYYY-MM-DD",
34
34
  "format":"date",
35
35
  "type":"string"
36
36
  },
@@ -132,7 +132,7 @@
132
132
  "properties":{"$ref":"./line_item.json#properties"}
133
133
  },
134
134
  "items":{
135
- "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.",
135
+ "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 line_items array is stronger for backward compat.",
136
136
  "type":"array",
137
137
  "default": "any",
138
138
  "minItems": 0,
@@ -221,12 +221,12 @@
221
221
  },
222
222
  "filter[from]":{
223
223
  "title" : "From date",
224
- "description": "Objects with a date on and after the date",
224
+ "description": "Objects with a date on and after the date. YYYY-MM-DD",
225
225
  "type" :"date"
226
226
  },
227
227
  "filter[to]":{
228
228
  "title" : "To date",
229
- "description": "Objects with date before and on the date",
229
+ "description": "Objects with date before and on the date. YYYY-MM-DD",
230
230
  "type" :"date"
231
231
  },
232
232
  "filter[created_at_from]":{
@@ -25,7 +25,7 @@
25
25
  "type":"string"
26
26
  },
27
27
  "date":{
28
- "description": "Date the document is issued. Automatically set when document is opened. Required for non-draft documents.",
28
+ "description": "Date the document is issued. Automatically set when document is opened. Required for non-draft documents. YYYY-MM-DD",
29
29
  "format":"date",
30
30
  "type":"string"
31
31
  },
@@ -172,13 +172,13 @@
172
172
  },
173
173
  "filter[from]":{
174
174
  "title" : "From date",
175
- "description": "Objects with a date after the date",
175
+ "description": "Objects with a date after the date. YYYY-MM-DD",
176
176
  "format" : "date",
177
177
  "type" : "string"
178
178
  },
179
179
  "filter[to]":{
180
180
  "title" : "To date",
181
- "description": "Objects with date before the date",
181
+ "description": "Objects with date before the date. YYYY-MM-DD",
182
182
  "format" : "date",
183
183
  "type" : "string"
184
184
  },
data/json/v1.0/email.json CHANGED
@@ -125,13 +125,13 @@
125
125
  },
126
126
  "filter[from]":{
127
127
  "title" : "From date",
128
- "description": "All objects updated on/after the date",
128
+ "description": "All objects updated on/after the date. YYYY-MM-DD",
129
129
  "format" : "date",
130
130
  "type" : "string"
131
131
  },
132
132
  "filter[to]":{
133
133
  "title" : "To date",
134
- "description": "All objects updated on/before the date",
134
+ "description": "All objects updated on/before the date. YYYY-MM-DD",
135
135
  "format" : "date",
136
136
  "type" : "string"
137
137
  },
@@ -1,7 +1,7 @@
1
1
  { "type":"object",
2
2
  "title": "email_template",
3
3
  "name": "email_template",
4
- "description":"An email_template in SK",
4
+ "description":"An email_template is used to simplify the creation of emails. When creating a new email just pass template id and all fields from the template are copied to the new email. The fields are NOT merged with present values in a new email object!",
5
5
  "properties":{
6
6
  "id":{
7
7
  "description":"Unique identifier - UUID",
@@ -29,6 +29,21 @@
29
29
  "type":"string",
30
30
  "format":"text"
31
31
  },
32
+ "from_addr":{
33
+ "description": "Default from address. A valid email address. Make sure your server(if custom SMPT settings for the API user) allows sending with this address.",
34
+ "type":"string",
35
+ "maxLength": 255
36
+ },
37
+ "cc_addr":{
38
+ "description": "Default copy receivers comma separated valid email addresses.",
39
+ "type":"string",
40
+ "maxLength": 255
41
+ },
42
+ "bcc_addr":{
43
+ "description": "Default blind copy receivers comma separated valid email addresses. ",
44
+ "type":"string",
45
+ "maxLength": 255
46
+ },
32
47
  "kind":{
33
48
  "description": "Kind of object the template can be used for.",
34
49
  "required":true,
@@ -21,7 +21,7 @@
21
21
  "type":"string"
22
22
  },
23
23
  "date":{
24
- "description": "Date the estimate is issued. Automatically set when estimate is opened. Required for non-draft documents.",
24
+ "description": "Date the estimate is issued. Automatically set when estimate is opened. Required for non-draft documents. YYYY-MM-DD",
25
25
  "format":"date",
26
26
  "type":"string"
27
27
  },
@@ -30,7 +30,7 @@
30
30
  "type":"integer"
31
31
  },
32
32
  "due_date":{
33
- "description": "Auto-calculated from date + due days if empty and the estimate is opened.",
33
+ "description": "Auto-calculated from date + due days if empty and the estimate is opened. YYYY-MM-DD",
34
34
  "format":"date",
35
35
  "type":"string"
36
36
  },
@@ -127,7 +127,7 @@
127
127
  "properties":{"$ref":"./line_item.json#properties"}
128
128
  },
129
129
  "items":{
130
- "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.",
130
+ "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 line_items array is stronger for backward compat.",
131
131
  "type":"array",
132
132
  "default": "any",
133
133
  "minItems": 0,
@@ -206,13 +206,13 @@
206
206
  },
207
207
  "filter[from]":{
208
208
  "title" : "From date",
209
- "description": "Objects with a date after the date",
209
+ "description": "Objects with a date after the date. YYYY-MM-DD",
210
210
  "format" : "date",
211
211
  "type" : "string"
212
212
  },
213
213
  "filter[to]":{
214
214
  "title" : "To date",
215
- "description": "Objects with date before the date",
215
+ "description": "Objects with date before the date. YYYY-MM-DD",
216
216
  "format" : "date",
217
217
  "type" : "string"
218
218
  },
@@ -21,7 +21,7 @@
21
21
  "type":"string"
22
22
  },
23
23
  "date":{
24
- "description": "Date the invoice is issued. Automatically set when invoice is opened. Required for non-draft documents.",
24
+ "description": "Date the invoice is issued. Automatically set when invoice is opened. Required for non-draft documents. YYYY-MM-DD",
25
25
  "format":"date",
26
26
  "type":"string"
27
27
  },
@@ -30,7 +30,7 @@
30
30
  "type":"integer"
31
31
  },
32
32
  "due_date":{
33
- "description": "Auto-calculated from date + due days if empty and the document is opened.",
33
+ "description": "Auto-calculated from date + due days if empty and the document is opened. YYYY-MM-DD",
34
34
  "format":"date",
35
35
  "type":"string"
36
36
  },
@@ -132,7 +132,7 @@
132
132
  "properties":{"$ref":"./line_item.json#properties"}
133
133
  },
134
134
  "items":{
135
- "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.",
135
+ "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 line_items array is stronger for backward compat.",
136
136
  "type":"array",
137
137
  "default": "any",
138
138
  "minItems": 0,
@@ -157,12 +157,12 @@
157
157
  "type":"integer"
158
158
  },
159
159
  "price_total":{
160
- "description": "Deprecated use net_total_base_raw",
160
+ "description": "DEPRECATED use net_total_base",
161
161
  "readonly":true,
162
162
  "type":"number"
163
163
  },
164
164
  "price_tax":{
165
- "description": "Deprecated: use tax_total",
165
+ "description": "DEPRECATED: use tax_total",
166
166
  "readonly":true,
167
167
  "type":"number"
168
168
  },
@@ -221,13 +221,13 @@
221
221
  },
222
222
  "filter[from]":{
223
223
  "title" : "From date",
224
- "description": "Objects with a date after the date",
224
+ "description": "Objects with a date after the date. YYYY-MM-DD",
225
225
  "format" : "date",
226
226
  "type" : "string"
227
227
  },
228
228
  "filter[to]":{
229
229
  "title" : "To date",
230
- "description": "Objects with date before the date",
230
+ "description": "Objects with date before the date. YYYY-MM-DD",
231
231
  "format" : "date",
232
232
  "type" : "string"
233
233
  },
data/json/v1.0/order.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "type":"string"
22
22
  },
23
23
  "date":{
24
- "description": "Date the order is issued. Automatically set when order is opened. Required for non-draft documents.",
24
+ "description": "Date the order is issued. Automatically set when order is opened. Required for non-draft documents. YYYY-MM-DD",
25
25
  "format":"date",
26
26
  "type":"string"
27
27
  },
@@ -30,7 +30,7 @@
30
30
  "type":"integer"
31
31
  },
32
32
  "due_date":{
33
- "description": "Auto-calculated from date + due days if empty and the document is opened.",
33
+ "description": "Auto-calculated from date + due days if empty and the document is opened. YYYY-MM-DD",
34
34
  "format":"date",
35
35
  "type":"string"
36
36
  },
@@ -132,7 +132,7 @@
132
132
  "properties":{"$ref":"./line_item.json#properties"}
133
133
  },
134
134
  "items":{
135
- "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.",
135
+ "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 line_items array is stronger for backward compat.",
136
136
  "type":"array",
137
137
  "default": "any",
138
138
  "minItems": 0,
@@ -211,13 +211,13 @@
211
211
  },
212
212
  "filter[from]":{
213
213
  "title" : "From date",
214
- "description": "Objects with a date after the date",
214
+ "description": "Objects with a date after the date. YYYY-MM-DD",
215
215
  "format" : "date",
216
216
  "type" : "string"
217
217
  },
218
218
  "filter[to]":{
219
219
  "title" : "To date",
220
- "description": "Objects with date before the date",
220
+ "description": "Objects with date before the date. YYYY-MM-DD",
221
221
  "format" : "date",
222
222
  "type" : "string"
223
223
  },
@@ -31,7 +31,7 @@
31
31
  "maxLength": 255
32
32
  },
33
33
  "date":{
34
- "description": "Date the payment was made.",
34
+ "description": "Date the payment was made. YYYY-MM-DD",
35
35
  "required":true,
36
36
  "format":"date",
37
37
  "type":"string"
@@ -110,14 +110,14 @@
110
110
  },
111
111
  "filter[from]":{
112
112
  "title" : "From date",
113
- "description": "All objects with a date after the date",
113
+ "description": "All objects with a date after the date. YYYY-MM-DD",
114
114
  "format" : "date",
115
115
  "type" : "string"
116
116
 
117
117
  },
118
118
  "filter[to]":{
119
119
  "title" : "To date",
120
- "description": "All objects with date before the date",
120
+ "description": "All objects with date before the date. YYYY-MM-DD",
121
121
  "format" : "date",
122
122
  "type" : "string"
123
123
  },
@@ -23,7 +23,7 @@
23
23
  "type":"string"
24
24
  },
25
25
  "date":{
26
- "description": "Date the payment_reminder is issued. Automatically set when created from invoice. Defaults to today.",
26
+ "description": "Date the payment_reminder is issued. Automatically set when created from invoice. Defaults to today. YYYY-MM-DD",
27
27
  "format":"date",
28
28
  "required": true,
29
29
  "type":"string"
@@ -33,7 +33,7 @@
33
33
  "type":"integer"
34
34
  },
35
35
  "due_date":{
36
- "description": "Auto-calculated from date + due days if empty and the payment_reminder is opened.",
36
+ "description": "Auto-calculated from date + due days if empty and the payment_reminder is opened. YYYY-MM-DD",
37
37
  "format":"date",
38
38
  "type":"string"
39
39
  },
@@ -193,13 +193,13 @@
193
193
  },
194
194
  "filter[from]":{
195
195
  "title" : "From date",
196
- "description": "All objects with a date after the date",
196
+ "description": "All objects with a date after the date. YYYY-MM-DD",
197
197
  "format" : "date",
198
198
  "type" : "string"
199
199
  },
200
200
  "filter[to]":{
201
201
  "title" : "To date",
202
- "description": "All objects with date before the date",
202
+ "description": "All objects with date before the date. YYYY-MM-DD",
203
203
  "format" : "date",
204
204
  "type" : "string"
205
205
  },
@@ -22,7 +22,7 @@
22
22
  "type":"string"
23
23
  },
24
24
  "date":{
25
- "description": "First date the recurring is issued. Not allowed to be in the past.",
25
+ "description": "First date the recurring is issued. Not allowed to be in the past. YYYY-MM-DD",
26
26
  "format":"date",
27
27
  "type":"string",
28
28
  "required":true
@@ -32,7 +32,7 @@
32
32
  "type":"integer"
33
33
  },
34
34
  "final_date":{
35
- "description": "The last date the recurring is executed.",
35
+ "description": "The last date the recurring is executed. YYYY-MM-DD",
36
36
  "format":"date",
37
37
  "type":"string",
38
38
  "required":true
@@ -119,7 +119,7 @@
119
119
  "properties":{"$ref":"./line_item.json#properties"}
120
120
  },
121
121
  "items":{
122
- "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.",
122
+ "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 line_items array is stronger for backward compat.",
123
123
  "type":"array",
124
124
  "default": "any",
125
125
  "minItems": 0,
@@ -193,7 +193,7 @@
193
193
  },
194
194
  "filter[from]":{
195
195
  "title" : "From date",
196
- "description": "Objects with a date after the date",
196
+ "description": "Objects with a date after the date. YYYY-MM-DD",
197
197
  "format" : "date",
198
198
  "type" : "string"
199
199
  },
@@ -1,7 +1,7 @@
1
1
  module SK
2
2
  module Api
3
3
  class Schema
4
- VERSION='0.8.0'
4
+ VERSION='0.8.1'
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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
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-08-14 00:00:00 Z
18
+ date: 2013-08-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime