sk_api_schema 0.10.5 → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.rdoc +1 -1
  4. data/json/v1.0/account.json +2 -2
  5. data/json/v1.0/contact.json +2 -2
  6. data/json/v1.0/line_item.json +3 -3
  7. data/json/v1.0/product.json +2 -2
  8. data/json/v1.0/sub.json +3 -3
  9. data/json/v2.0/account.json +172 -0
  10. data/json/v2.0/account_billing.json +131 -0
  11. data/json/v2.0/account_entry.json +212 -0
  12. data/json/v2.0/address.json +85 -0
  13. data/json/v2.0/attachment.json +133 -0
  14. data/json/v2.0/auth_permission.json +75 -0
  15. data/json/v2.0/client.json +318 -0
  16. data/json/v2.0/comment.json +122 -0
  17. data/json/v2.0/company.json +141 -0
  18. data/json/v2.0/contact.json +418 -0
  19. data/json/v2.0/credit_note.json +380 -0
  20. data/json/v2.0/divider_item.json +47 -0
  21. data/json/v2.0/document.json +240 -0
  22. data/json/v2.0/email.json +191 -0
  23. data/json/v2.0/email_template.json +132 -0
  24. data/json/v2.0/estimate.json +408 -0
  25. data/json/v2.0/export.json +142 -0
  26. data/json/v2.0/export_template.json +100 -0
  27. data/json/v2.0/invoice.json +407 -0
  28. data/json/v2.0/language.json +82 -0
  29. data/json/v2.0/line_item.json +121 -0
  30. data/json/v2.0/order.json +373 -0
  31. data/json/v2.0/payment.json +148 -0
  32. data/json/v2.0/payment_reminder.json +301 -0
  33. data/json/v2.0/pdf_template.json +99 -0
  34. data/json/v2.0/product.json +144 -0
  35. data/json/v2.0/recurring.json +340 -0
  36. data/json/v2.0/sub.json +60 -0
  37. data/json/v2.0/sub_total_item.json +57 -0
  38. data/json/v2.0/tag.json +76 -0
  39. data/json/v2.0/task.json +229 -0
  40. data/json/v2.0/text_template.json +95 -0
  41. data/json/v2.0/user.json +103 -0
  42. data/lib/sk_api_schema/version.rb +1 -1
  43. metadata +35 -2
@@ -0,0 +1,103 @@
1
+ {"type":"object",
2
+ "title": "user",
3
+ "name": "user",
4
+ "description": "A user as seen by SalesKing",
5
+ "properties":{
6
+ "id":{
7
+ "description":"Unique identifier - UUID",
8
+ "identity":true,
9
+ "readonly":true,
10
+ "type":"string",
11
+ "maxLength": 22,
12
+ "minLength":22
13
+ },
14
+ "last_name":{
15
+ "description": "Last name of a person. At least this or the organisation field must be filled for new records",
16
+ "type":"string",
17
+ "maxLength": 50
18
+ },
19
+ "first_name":{
20
+ "description": "First name",
21
+ "type":"string",
22
+ "maxLength": 50
23
+ },
24
+ "gender":{
25
+ "description": "The users gender, used in salutation",
26
+ "enum":["male", "female"],
27
+ "type":"string"
28
+ },
29
+ "position":{
30
+ "description": "Position of a person in a company.",
31
+ "type":"string",
32
+ "maxLength": 50
33
+ },
34
+ "title":{
35
+ "description": "Academical title of a person e.g. Dr., Prof",
36
+ "type":"string",
37
+ "maxLength": 50
38
+ },
39
+ "language":{
40
+ "description": "The users language, reflected in the interface.",
41
+ "required":true,
42
+ "type":"string",
43
+ "maxLength": 10
44
+ },
45
+ "time_zone":{
46
+ "description": "Time zone",
47
+ "type":"string"
48
+ },
49
+ "email":{
50
+ "description": "Email address of the user. Unique in SK",
51
+ "required":true,
52
+ "type":"string",
53
+ "maxLength": 100
54
+ },
55
+ "url":{
56
+ "description": "An url associated with the person, e.g its company website.",
57
+ "type":"string",
58
+ "maxLength": 255
59
+ },
60
+ "birthday":{
61
+ "format":"date",
62
+ "type":"string"
63
+ },
64
+ "phone_fax":{
65
+ "description": "Fax number",
66
+ "type":"string",
67
+ "maxLength": 30
68
+ },
69
+ "phone_office":{
70
+ "description": "Office phone number",
71
+ "type":"string",
72
+ "maxLength": 30
73
+ },
74
+ "phone_home":{
75
+ "description": "Private phone number.",
76
+ "type":"string",
77
+ "maxLength": 30
78
+ },
79
+ "phone_mobile":{
80
+ "description": "Mobile phone number",
81
+ "type":"string",
82
+ "maxLength": 30
83
+ },
84
+ "created_at":{
85
+ "description": "Date the record was created in SK. Never changes afterwards.",
86
+ "format":"date-time",
87
+ "readonly":true,
88
+ "type":"string"
89
+ },
90
+ "updated_at":{
91
+ "description": "Last date when the record was edited.",
92
+ "format":"date-time",
93
+ "readonly":true,
94
+ "type":"string"
95
+ }
96
+ },
97
+
98
+ "links":[
99
+ { "rel": "self",
100
+ "href": "users/current"
101
+ }
102
+ ]
103
+ }
@@ -1,7 +1,7 @@
1
1
  module SK
2
2
  module Api
3
3
  class Schema
4
- VERSION='0.10.5'
4
+ VERSION='0.10.6'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sk_api_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -128,6 +128,39 @@ files:
128
128
  - json/v1.0/task.json
129
129
  - json/v1.0/text_template.json
130
130
  - json/v1.0/user.json
131
+ - json/v2.0/account.json
132
+ - json/v2.0/account_billing.json
133
+ - json/v2.0/account_entry.json
134
+ - json/v2.0/address.json
135
+ - json/v2.0/attachment.json
136
+ - json/v2.0/auth_permission.json
137
+ - json/v2.0/client.json
138
+ - json/v2.0/comment.json
139
+ - json/v2.0/company.json
140
+ - json/v2.0/contact.json
141
+ - json/v2.0/credit_note.json
142
+ - json/v2.0/divider_item.json
143
+ - json/v2.0/document.json
144
+ - json/v2.0/email.json
145
+ - json/v2.0/email_template.json
146
+ - json/v2.0/estimate.json
147
+ - json/v2.0/export.json
148
+ - json/v2.0/export_template.json
149
+ - json/v2.0/invoice.json
150
+ - json/v2.0/language.json
151
+ - json/v2.0/line_item.json
152
+ - json/v2.0/order.json
153
+ - json/v2.0/payment.json
154
+ - json/v2.0/payment_reminder.json
155
+ - json/v2.0/pdf_template.json
156
+ - json/v2.0/product.json
157
+ - json/v2.0/recurring.json
158
+ - json/v2.0/sub.json
159
+ - json/v2.0/sub_total_item.json
160
+ - json/v2.0/tag.json
161
+ - json/v2.0/task.json
162
+ - json/v2.0/text_template.json
163
+ - json/v2.0/user.json
131
164
  - lib/sk_api_schema.rb
132
165
  - lib/sk_api_schema/version.rb
133
166
  - sk_api_schema.gemspec