sk_api_schema 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/json/v1.0/user.json +111 -0
- data/sk_api_schema.gemspec +2 -1
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/json/v1.0/user.json
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
{"type":"object",
|
2
|
+
"title": "user",
|
3
|
+
"description": "A user as seen by SalesKing",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"identity":true,
|
7
|
+
"optional":true,
|
8
|
+
"readonly":true,
|
9
|
+
"type":"string"
|
10
|
+
},
|
11
|
+
"last_name": {
|
12
|
+
"description": "Last name of a person. At least this or the organisation field must be filled for new records",
|
13
|
+
"optional":true,
|
14
|
+
"type":"string"
|
15
|
+
},
|
16
|
+
"first_name": {
|
17
|
+
"description": "First name of a person.",
|
18
|
+
"optional":true,
|
19
|
+
"type":"string"
|
20
|
+
},
|
21
|
+
"gender": {
|
22
|
+
"description": "Can be empty for a company. Is used in salutation",
|
23
|
+
"optional":true,
|
24
|
+
"enum":["male", "female"],
|
25
|
+
"type":"string"
|
26
|
+
},
|
27
|
+
"position": {
|
28
|
+
"description": "Position of a person in a company.",
|
29
|
+
"optional":true,
|
30
|
+
"type":"string"
|
31
|
+
},
|
32
|
+
"title": {
|
33
|
+
"description": "Academical title of a person e.g. Dr., Prof",
|
34
|
+
"optional":true,
|
35
|
+
"type":"string"
|
36
|
+
},
|
37
|
+
"language": {
|
38
|
+
"description": "the users language inside SK",
|
39
|
+
"optional":true,
|
40
|
+
"type":"string"
|
41
|
+
},
|
42
|
+
"time_zone": {
|
43
|
+
"description": "the users time zone inside SK",
|
44
|
+
"optional":true,
|
45
|
+
"type":"string"
|
46
|
+
},
|
47
|
+
"email": {
|
48
|
+
"description": "Email address of the contact.",
|
49
|
+
"optional":true,
|
50
|
+
"type":"string"
|
51
|
+
},
|
52
|
+
"url": {
|
53
|
+
"description": "An url associated with the person, e.g its company website.",
|
54
|
+
"optional":true,
|
55
|
+
"type":"string"
|
56
|
+
},
|
57
|
+
"birthday": {
|
58
|
+
"format":"date",
|
59
|
+
"optional":true,
|
60
|
+
"type":"string"
|
61
|
+
},
|
62
|
+
"created_at": {
|
63
|
+
"description": "Date the record was created in SK. Never changes afterwards.",
|
64
|
+
"format":"date-time",
|
65
|
+
"optional":true,
|
66
|
+
"readonly":true,
|
67
|
+
"type":"string"
|
68
|
+
},
|
69
|
+
"updated_at": {
|
70
|
+
"description": "Last date when the record was edited.",
|
71
|
+
"format":"date-time",
|
72
|
+
"optional":true,
|
73
|
+
"readonly":true,
|
74
|
+
"type":"string"
|
75
|
+
},
|
76
|
+
|
77
|
+
"phone_fax": {
|
78
|
+
"description": "Fax number",
|
79
|
+
"optional":true,
|
80
|
+
"type":"string"
|
81
|
+
},
|
82
|
+
"phone_office": {
|
83
|
+
"description": "Office phone number",
|
84
|
+
"optional":true,
|
85
|
+
"type":"string"
|
86
|
+
},
|
87
|
+
"phone_home": {
|
88
|
+
"description": "Private phone number.",
|
89
|
+
"optional":true,
|
90
|
+
"type":"string"
|
91
|
+
},
|
92
|
+
"phone_mobile": {
|
93
|
+
"description": "Mobile phone number",
|
94
|
+
"optional":true,
|
95
|
+
"type":"string"
|
96
|
+
},
|
97
|
+
"lock_version": {
|
98
|
+
"description": "Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.",
|
99
|
+
"optional":true,
|
100
|
+
"readonly":true,
|
101
|
+
"type":"integer"
|
102
|
+
},
|
103
|
+
"address_field": {
|
104
|
+
"description": "Returns the address field used on new docs. Consist of Organisation name and default(first) address",
|
105
|
+
"optional":true,
|
106
|
+
"readonly":true,
|
107
|
+
"type":"string"
|
108
|
+
}
|
109
|
+
|
110
|
+
}
|
111
|
+
}
|
data/sk_api_schema.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sk_api_schema}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
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"]
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"json/v1.0/credit_note.json",
|
27
27
|
"json/v1.0/invoice.json",
|
28
28
|
"json/v1.0/line_item.json",
|
29
|
+
"json/v1.0/user.json",
|
29
30
|
"lib/sk_api_schema.rb",
|
30
31
|
"sk_api_schema.gemspec",
|
31
32
|
"spec/sk_api_schema_spec.rb",
|
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: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Georg Leciejewski
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- json/v1.0/credit_note.json
|
66
66
|
- json/v1.0/invoice.json
|
67
67
|
- json/v1.0/line_item.json
|
68
|
+
- json/v1.0/user.json
|
68
69
|
- lib/sk_api_schema.rb
|
69
70
|
- sk_api_schema.gemspec
|
70
71
|
- spec/sk_api_schema_spec.rb
|