sk_api_schema 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -355,6 +355,27 @@
355
355
  },
356
356
  { "rel": "emails",
357
357
  "href": "contacts/{id}/emails"
358
+ },
359
+ { "rel": "emails create",
360
+ "href": "contacts/{id}/emails",
361
+ "method": "POST",
362
+ "properties" : {
363
+ "template_id":{
364
+ "title" : "Template",
365
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
366
+ "type":"string",
367
+ "maxLength": 22,
368
+ "minLength":22
369
+ },
370
+ "send":{
371
+ "title" : "Send email",
372
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
373
+ },
374
+ "archived_pdf":{
375
+ "title" : "Attach archived pdf",
376
+ "description": "Adds the archived pdf from the related resource(if it has one)."
377
+ }
378
+ }
358
379
  }
359
380
  ]
360
381
  }
@@ -301,6 +301,27 @@
301
301
  { "rel": "emails",
302
302
  "href": "credit_notes/{id}/emails"
303
303
  },
304
+ { "rel": "emails create",
305
+ "href": "credit_notes/{id}/emails",
306
+ "method": "POST",
307
+ "properties" : {
308
+ "template_id":{
309
+ "title" : "Template",
310
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
311
+ "type":"string",
312
+ "maxLength": 22,
313
+ "minLength":22
314
+ },
315
+ "send":{
316
+ "title" : "Send email",
317
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
318
+ },
319
+ "archived_pdf":{
320
+ "title" : "Attach archived pdf",
321
+ "description": "Adds the archived pdf from the related resource(if it has one)."
322
+ }
323
+ }
324
+ },
304
325
  { "rel": "print",
305
326
  "href": "credit_notes/{id}/print",
306
327
  "method": "POST",
@@ -286,6 +286,27 @@
286
286
  { "rel": "emails",
287
287
  "href": "estimates/{id}/emails"
288
288
  },
289
+ { "rel": "emails create",
290
+ "href": "estimates/{id}/emails",
291
+ "method": "POST",
292
+ "properties" : {
293
+ "template_id":{
294
+ "title" : "Template",
295
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
296
+ "type":"string",
297
+ "maxLength": 22,
298
+ "minLength":22
299
+ },
300
+ "send":{
301
+ "title" : "Send email",
302
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
303
+ },
304
+ "archived_pdf":{
305
+ "title" : "Attach archived pdf",
306
+ "description": "Adds the archived pdf from the related resource(if it has one)."
307
+ }
308
+ }
309
+ },
289
310
  { "rel": "print",
290
311
  "href": "estimates/{id}/print",
291
312
  "method": "POST",
@@ -310,6 +310,27 @@
310
310
  { "rel": "emails",
311
311
  "href": "invoices/{id}/emails"
312
312
  },
313
+ { "rel": "emails create",
314
+ "href": "invoices/{id}/emails",
315
+ "method": "POST",
316
+ "properties" : {
317
+ "template_id":{
318
+ "title" : "Template",
319
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
320
+ "type":"string",
321
+ "maxLength": 22,
322
+ "minLength":22
323
+ },
324
+ "send":{
325
+ "title" : "Send email",
326
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
327
+ },
328
+ "archived_pdf":{
329
+ "title" : "Attach archived pdf",
330
+ "description": "Adds the archived pdf from the related resource(if it has one)."
331
+ }
332
+ }
333
+ },
313
334
  { "rel": "print",
314
335
  "href": "invoices/{id}/print",
315
336
  "method": "POST",
data/json/v1.0/order.json CHANGED
@@ -291,6 +291,27 @@
291
291
  { "rel": "emails",
292
292
  "href": "orders/{id}/emails"
293
293
  },
294
+ { "rel": "emails create",
295
+ "href": "orders/{id}/emails",
296
+ "method": "POST",
297
+ "properties" : {
298
+ "template_id":{
299
+ "title" : "Template",
300
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
301
+ "type":"string",
302
+ "maxLength": 22,
303
+ "minLength":22
304
+ },
305
+ "send":{
306
+ "title" : "Send email",
307
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
308
+ },
309
+ "archived_pdf":{
310
+ "title" : "Attach archived pdf",
311
+ "description": "Adds the archived pdf from the related resource(if it has one)."
312
+ }
313
+ }
314
+ },
294
315
  { "rel": "print",
295
316
  "href": "orders/{id}/print",
296
317
  "method": "POST",
@@ -253,6 +253,27 @@
253
253
  { "rel": "emails",
254
254
  "href": "payment_reminders/{id}/emails"
255
255
  },
256
+ { "rel": "emails create",
257
+ "href": "payment_reminders/{id}/emails",
258
+ "method": "POST",
259
+ "properties" : {
260
+ "template_id":{
261
+ "title" : "Template",
262
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
263
+ "type":"string",
264
+ "maxLength": 22,
265
+ "minLength":22
266
+ },
267
+ "send":{
268
+ "title" : "Send email",
269
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
270
+ },
271
+ "archived_pdf":{
272
+ "title" : "Attach archived pdf",
273
+ "description": "Adds the archived pdf from the related resource(if it has one)."
274
+ }
275
+ }
276
+ },
256
277
  { "rel": "print",
257
278
  "href": "payment_reminders/{id}/print",
258
279
  "method": "POST",
@@ -1,7 +1,7 @@
1
1
  module SK
2
2
  module Api
3
3
  class Schema
4
- VERSION='0.7.8'
4
+ VERSION='0.7.9'
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 8
10
- version: 0.7.8
9
+ - 9
10
+ version: 0.7.9
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-06-04 00:00:00 Z
18
+ date: 2013-07-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime