sk_api_schema 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -62,7 +62,7 @@
62
62
  "description": "Geolocation longitude",
63
63
  "type":"string"
64
64
  },
65
- "_delete": {
65
+ "_destroy": {
66
66
  "description": "When set an existing address will be deleted. This switch is only used when addresses are passed-in nested inside their parent object(a contact).",
67
67
  "type":"boolean"
68
68
  }
@@ -72,7 +72,12 @@
72
72
  "format":"date-time",
73
73
  "readonly":true,
74
74
  "type":"string"
75
- },
75
+ },
76
+ "language":{
77
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the client is emailed, a localized version of a multi-language template(email, pdf) will be used if available. The language will also be set for new documents.",
78
+ "type":"string",
79
+ "maxLength": 10
80
+ },
76
81
  "payment_method":{
77
82
  "description": "Default payment method for used for new documemts",
78
83
  "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque", "moneybookers", "premium_sms"],
@@ -67,6 +67,11 @@
67
67
  "enum": [2,3,4],
68
68
  "default":2
69
69
  },
70
+ "language":{
71
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
72
+ "type":"string",
73
+ "maxLength": 10
74
+ },
70
75
  "archived_pdf":{
71
76
  "description": "Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one. ",
72
77
  "readonly":true,
@@ -29,6 +29,11 @@
29
29
  "enum": ["invoice", "estimate", "credit_note", "payment_reminder", "order", "client"],
30
30
  "type":"string"
31
31
  },
32
+ "language":{
33
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. A multi-language template must belong to a parent. From then on just choose the parent-template and the localized child version is used if the related object(client, invoice,..) of the email, has the appropriate language.",
34
+ "type":"string",
35
+ "maxLength": 10
36
+ },
32
37
  "created_at": {
33
38
  "description": "Date the object was created in SK. Never changes afterwards",
34
39
  "format":"date-time",
@@ -62,6 +62,11 @@
62
62
  "enum": [2,3,4],
63
63
  "default":2
64
64
  },
65
+ "language":{
66
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
67
+ "type":"string",
68
+ "maxLength": 10
69
+ },
65
70
  "archived_pdf":{
66
71
  "description": "Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one. ",
67
72
  "readonly":true,
@@ -67,6 +67,11 @@
67
67
  "enum": [2,3,4],
68
68
  "default":2
69
69
  },
70
+ "language":{
71
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
72
+ "type":"string",
73
+ "maxLength": 10
74
+ },
70
75
  "archived_pdf":{
71
76
  "description": "Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one. ",
72
77
  "readonly":true,
@@ -63,7 +63,7 @@
63
63
  "readonly":true,
64
64
  "type":"string"
65
65
  },
66
- "_delete": {
66
+ "_destroy": {
67
67
  "description": "When set an existing item will be deleted. This switch is used for items passed-in nested inside their parent object(a document), which is default as long as there is no line item endpoint available.",
68
68
  "type":"boolean"
69
69
  }
data/json/v1.0/order.json CHANGED
@@ -53,6 +53,11 @@
53
53
  "enum": [2,3,4],
54
54
  "default":2
55
55
  },
56
+ "language":{
57
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
58
+ "type":"string",
59
+ "maxLength": 10
60
+ },
56
61
  "archived_pdf":{
57
62
  "description": "Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one. ",
58
63
  "readonly":true,
@@ -58,6 +58,11 @@
58
58
  "enum": [2,3,4],
59
59
  "default":2
60
60
  },
61
+ "language":{
62
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
63
+ "type":"string",
64
+ "maxLength": 10
65
+ },
61
66
  "archived_pdf":{
62
67
  "description": "Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one. ",
63
68
  "readonly":true,
@@ -70,6 +70,11 @@
70
70
  "enum": [2,3,4],
71
71
  "default":2
72
72
  },
73
+ "language":{
74
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.",
75
+ "type":"string",
76
+ "maxLength": 10
77
+ },
73
78
  "client":{
74
79
  "description": "The client for the document. New documents cannot create a client, use client_id field to set it.",
75
80
  "readonly":true,
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sk_api_schema}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Georg Leciejewski"]
12
- s.date = %q{2011-05-02}
12
+ s.date = %q{2011-06-03}
13
13
  s.description = %q{SalesKing API JSON schema and utility methods}
14
14
  s.email = %q{gl@salesking.eu}
15
15
  s.extra_rdoc_files = [
@@ -53,10 +53,6 @@ Gem::Specification.new do |s|
53
53
  s.require_paths = ["lib"]
54
54
  s.rubygems_version = %q{1.6.2}
55
55
  s.summary = %q{SalesKing API JSON Schema}
56
- s.test_files = [
57
- "spec/sk_api_schema_spec.rb",
58
- "spec/spec_helper.rb"
59
- ]
60
56
 
61
57
  if s.respond_to? :specification_version then
62
58
  s.specification_version = 3
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
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: 2011-05-02 00:00:00 +02:00
18
+ date: 2011-06-03 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -121,6 +121,5 @@ rubygems_version: 1.6.2
121
121
  signing_key:
122
122
  specification_version: 3
123
123
  summary: SalesKing API JSON Schema
124
- test_files:
125
- - spec/sk_api_schema_spec.rb
126
- - spec/spec_helper.rb
124
+ test_files: []
125
+