sk_api_schema 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.14
1
+ 0.0.15
@@ -38,7 +38,7 @@
38
38
  "type":"string"
39
39
  },
40
40
  "tax_number": {
41
- "description": "Tax number, normaly applies to a private person",
41
+ "description": "Tax number, normally applies to a private person",
42
42
  "type":"string"
43
43
  },
44
44
  "vat_number": {
@@ -0,0 +1,108 @@
1
+ {"type":"object",
2
+ "title": "company",
3
+ "description": "A company is the main entity. Any data is retrieved scoped to the current company, identified by the subdomain.",
4
+ "properties": {
5
+ "id": {
6
+ "identity":true,
7
+ "readonly":true,
8
+ "type":"string"
9
+ },
10
+ "name": {
11
+ "description": "Company name",
12
+ "type":"string"
13
+ },
14
+ "language": {
15
+ "description": "Default language, used for new users",
16
+ "type":"string"
17
+ },
18
+ "sub_domain": {
19
+ "description": "Unique subdomain identifying the company's SalesKing account.",
20
+ "type":"string"
21
+ },
22
+ "account_link": {
23
+ "description": "Link to a company's SalesKing account.",
24
+ "type":"string",
25
+ "readonly":true
26
+ },
27
+ "time_zone": {
28
+ "description": "Default time zone, used for new users",
29
+ "type":"string"
30
+ },
31
+ "email": {
32
+ "description": "Email address",
33
+ "required":true,
34
+ "type":"string"
35
+ },
36
+ "url": {
37
+ "description": "A company website",
38
+ "type":"string"
39
+ },
40
+ "phone_fax": {
41
+ "description": "Fax number",
42
+ "type":"string"
43
+ },
44
+ "phone_office": {
45
+ "description": "Office phone number",
46
+ "type":"string"
47
+ },
48
+ "phone_mobile": {
49
+ "description": "Mobile phone number",
50
+ "type":"string"
51
+ },
52
+ "tax_number": {
53
+ "description": "Tax number, normally applies to a private person running a small business.",
54
+ "type":"string"
55
+ },
56
+ "addresses": {
57
+ "description": "A company can have many addresses, sorted by date descending(new first). Default address used in placeholder is the most recent one.",
58
+ "type":"array",
59
+ "properties" : {"$ref":"./addresses.json#properties"}
60
+ },
61
+ "vat_number": {
62
+ "description": "VAT number, for a company entitled to pay value added taxes.",
63
+ "type":"string"
64
+ },
65
+ "bank_name": {
66
+ "description": "Bank name",
67
+ "type":"string"
68
+ },
69
+ "bank_number": {
70
+ "description": "Bank number",
71
+ "type":"string"
72
+ },
73
+ "bank_account_number": {
74
+ "description": "Bank account number.",
75
+ "type":"string"
76
+ },
77
+ "bank_iban": {
78
+ "description": "IBAN Number of the bank account. Is validated",
79
+ "type":"string"
80
+ },
81
+ "bank_swift": {
82
+ "description": "SWIFT BIC- Bank Identifier Code",
83
+ "type":"string"
84
+ },
85
+ "bank_owner": {
86
+ "description": "Bank account owner",
87
+ "type":"string"
88
+ },
89
+ "created_at": {
90
+ "description": "Date the record was created in SK. Never changes afterwards.",
91
+ "format":"date-time",
92
+ "readonly":true,
93
+ "type":"string"
94
+ },
95
+ "updated_at": {
96
+ "description": "Last date when the record was edited.",
97
+ "format":"date-time",
98
+ "readonly":true,
99
+ "type":"string"
100
+ }
101
+ },
102
+
103
+ "links":[
104
+ { "rel": "self",
105
+ "href": "companies"
106
+ }
107
+ ]
108
+ }
@@ -36,6 +36,10 @@
36
36
  "enum":["draft","open","closed"],
37
37
  "type":"string"
38
38
  },
39
+ "external_ref":{
40
+ "description": "Some external reference, whatever this may be.",
41
+ "type":"string"
42
+ },
39
43
  "payment_method":{
40
44
  "description": "How the document is beeing payed. Used in new payments.",
41
45
  "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque"],
@@ -36,6 +36,10 @@
36
36
  "enum":["draft","open","closed"],
37
37
  "type":"string"
38
38
  },
39
+ "external_ref":{
40
+ "description": "Some external reference, whatever this may be.",
41
+ "type":"string"
42
+ },
39
43
  "title":{
40
44
  "description": "The headline of a document. Use SK placeholders to prevent exessive typing e.g. 'Your estimate [number]'",
41
45
  "type":"string"
@@ -98,7 +102,6 @@
98
102
  },
99
103
  "lock_version":{
100
104
  "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version.",
101
- "optional":true,
102
105
  "type":"integer"
103
106
  },
104
107
  "gross_total":{
@@ -36,6 +36,10 @@
36
36
  "enum":["draft","open","closed"],
37
37
  "type":"string"
38
38
  },
39
+ "external_ref":{
40
+ "description": "Some external reference, whatever this may be.",
41
+ "type":"string"
42
+ },
39
43
  "payment_method":{
40
44
  "description": "How the invoce is beeing payed. Used in new payments.",
41
45
  "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque"],
@@ -103,7 +107,6 @@
103
107
  },
104
108
  "lock_version":{
105
109
  "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version. ",
106
- "optional":true,
107
110
  "type":"integer"
108
111
  },
109
112
  "price_total":{
@@ -44,7 +44,7 @@
44
44
  "required":true
45
45
  },
46
46
  "product_id":{
47
- "description": "An item can reference a product by its uuid. See use_product",
47
+ "description": "An item can reference a product. This makes it easier to track a products turnover and the documents it is used on. Also ee use_product",
48
48
  "type":"string"
49
49
  },
50
50
  "use_product":{
data/json/v1.0/order.json CHANGED
@@ -27,6 +27,10 @@
27
27
  "enum":["draft","open","closed"],
28
28
  "type":"string"
29
29
  },
30
+ "external_ref":{
31
+ "description": "Some external reference, whatever this may be.",
32
+ "type":"string"
33
+ },
30
34
  "title":{
31
35
  "description": "The headline of a document. Use SK placeholders to prevent exessive typing e.g. 'Your order [number]'",
32
36
  "type":"string"
@@ -88,7 +92,6 @@
88
92
  },
89
93
  "lock_version":{
90
94
  "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version.",
91
- "optional":true,
92
95
  "type":"integer"
93
96
  },
94
97
  "gross_total":{
@@ -32,6 +32,10 @@
32
32
  "format":"date",
33
33
  "type":"string"
34
34
  },
35
+ "external_ref":{
36
+ "description": "Some external reference, whatever this may be.",
37
+ "type":"string"
38
+ },
35
39
  "title":{
36
40
  "description": "The headline of a document. Use SK placeholders to prevent exessive typing e.g. 'Your payment_reminder [number]'. Defaults to values from settings",
37
41
  "type":"string"
@@ -93,7 +97,6 @@
93
97
  },
94
98
  "lock_version":{
95
99
  "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version. ",
96
- "optional":true,
97
100
  "type":"integer"
98
101
  },
99
102
  "gross_total":{
@@ -44,6 +44,10 @@
44
44
  "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque"],
45
45
  "type":"string"
46
46
  },
47
+ "external_ref":{
48
+ "description": "Some external reference, whatever this may be.",
49
+ "type":"string"
50
+ },
47
51
  "title":{
48
52
  "description": "The headline of a document. Use SK placeholders to prevent exessive typing e.g. 'Your recurring [number]'",
49
53
  "type":"string"
@@ -100,7 +104,6 @@
100
104
  },
101
105
  "lock_version":{
102
106
  "description": "Auto-incremented to prevent concurrent updateing. First save wins and increments version. ",
103
- "optional":true,
104
107
  "type":"integer"
105
108
  },
106
109
  "gross_total":{
data/json/v1.0/user.json CHANGED
@@ -12,11 +12,11 @@
12
12
  "type":"string"
13
13
  },
14
14
  "first_name": {
15
- "description": "First name of a person.",
15
+ "description": "First name",
16
16
  "type":"string"
17
17
  },
18
18
  "gender": {
19
- "description": "Can be empty for a company. Is used in salutation",
19
+ "description": "The users gender, used in salutation",
20
20
  "enum":["male", "female"],
21
21
  "type":"string"
22
22
  },
@@ -29,12 +29,12 @@
29
29
  "type":"string"
30
30
  },
31
31
  "language": {
32
- "description": "the users language inside SK",
33
- "optional":true,
32
+ "description": "The users language, reflected in the interface.",
33
+ "required":true,
34
34
  "type":"string"
35
35
  },
36
36
  "time_zone": {
37
- "description": "the users time zone inside SK",
37
+ "description": "Time zone",
38
38
  "type":"string"
39
39
  },
40
40
  "email": {
@@ -56,17 +56,14 @@
56
56
  },
57
57
  "phone_office": {
58
58
  "description": "Office phone number",
59
- "optional":true,
60
59
  "type":"string"
61
60
  },
62
61
  "phone_home": {
63
62
  "description": "Private phone number.",
64
- "optional":true,
65
63
  "type":"string"
66
64
  },
67
65
  "phone_mobile": {
68
66
  "description": "Mobile phone number",
69
- "optional":true,
70
67
  "type":"string"
71
68
  },
72
69
  "created_at": {
@@ -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.0.14"
8
+ s.version = "0.0.15"
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-02-02}
12
+ s.date = %q{2011-02-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 = [
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  "json/v1.0/attachment.json",
24
24
  "json/v1.0/client.json",
25
25
  "json/v1.0/comment.json",
26
+ "json/v1.0/company.json",
26
27
  "json/v1.0/credit_note.json",
27
28
  "json/v1.0/email.json",
28
29
  "json/v1.0/email_template.json",
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 14
10
- version: 0.0.14
9
+ - 15
10
+ version: 0.0.15
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-02-02 00:00:00 +01:00
18
+ date: 2011-02-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -62,6 +62,7 @@ files:
62
62
  - json/v1.0/attachment.json
63
63
  - json/v1.0/client.json
64
64
  - json/v1.0/comment.json
65
+ - json/v1.0/company.json
65
66
  - json/v1.0/credit_note.json
66
67
  - json/v1.0/email.json
67
68
  - json/v1.0/email_template.json