-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUser_v5.dtd
184 lines (184 loc) · 5.35 KB
/
User_v5.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/User_v5.dtd",
"title": "User (v5)",
"type": "object",
"description": "The JSON schema for a user object. url: https://wh.route4me.com/modules/api/v5.0/team/users",
"properties": {
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Identification of the member."
},
"member_first_name": {
"type": "string",
"title": "Member First Name",
"description": "The first name of the user."
},
"member_last_name": {
"type": "string",
"title": "Member Last Name",
"description": "The last name of the user."
},
"member_email": {
"type": "string",
"title": "Member Email",
"format": "email",
"description": "E-mail address of the user that was used for site registration. HTTP method - POST."
},
"member_type": {
"type": "string",
"title": "Member Type",
"description": "Member type, ENUM [PRIMARY_ACCOUNT, SUB_ACCOUNT_ADMIN, SUB_ACCOUNT_REGIONAL_MANAGER, SUB_ACCOUNT_DISPATCHER, SUB_ACCOUNT_PLANNER, SUB_ACCOUNT_DRIVER]. HTTP method - POST."
},
"member_company": {
"type": "string",
"title": "Member Company",
"description": "A company to which the member belongs."
},
"member_phone": {
"type": "string",
"title": "Member Phone",
"description": "A phone number of the user. HTTP method - POST."
},
"timezone": {
"type": "string",
"title": "Timezone",
"description": "Member timezone. HTTP method - POST."
},
"HIDE_ROUTED_ADDRESSES": {
"type": "string",
"title": "Hide Routed Addresses",
"description": "Hide routed sddresses, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"HIDE_VISITED_ADDRESSES": {
"type": "string",
"title": "Hide Visited Addresses",
"description": "Hide visited sddresses, ENUM['TRUE, 'FALSE']. HTTP method - POST."
},
"HIDE_NONFUTURE_ROUTES": {
"type": "string",
"title": "Hide Nonfuture Routes",
"description": "Hide non-future routes, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"READONLY_USER": {
"type": "string",
"title": "Readonly User",
"description": "Readonly user, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"OWNER_MEMBER_ID": {
"type": "string",
"title": "Owner Member ID",
"description": "Parent user ID. HTTP method - POST."
},
"date_of_birth": {
"type": "string",
"title": "Date of Birth",
"description": "Date of birth. HTTP method - POST."
},
"user_reg_state_id": {
"type": "integer",
"title": "User Region State ID",
"description": "Member state, Enum(COUNTRY_CODES). HTTP method - POST."
},
"user_reg_country_id": {
"type": "integer",
"title": "User Region Country ID",
"description": "Member country, Enum(COUNTRY_CODES). HTTP method - POST."
},
"SHOW_SUSR_ADDR": {
"type": "string",
"title": "Show Global Addresses",
"description": "Show global address book contacts in a user's account, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"SHOW_SUSR_ORDERS": {
"type": "string",
"title": "Show Global Orders",
"description": "Show global orders in a user's account, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"DriverHourlyRate": {
"type": "number",
"title": "Driver Hourly Rate",
"description": "An hourly rate for driving work."
},
"member_picture": {
"type": "string",
"title": "Member Picture",
"description": "An URL to a member picture file."
},
"SHOW_ALL_DRIVERS": {
"type": "string",
"title": "Show All Drivers",
"description": "Show all drivers, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"vendor_id": {
"type": "integer",
"title": "Vendor ID",
"description": "Telematics vendor ID"
},
"driving_rate": {
"type": "number",
"title": "Driving Rate",
"description": "Driving rate of a user."
},
"working_rate": {
"type": "number",
"title": "Working Rate",
"description": "Working rate of a user."
},
"mile_rate": {
"type": "number",
"title": "Mile Rate",
"description": "Mile rate of a user."
},
"idling_rate": {
"type": "number",
"title": "Idling Rate",
"description": "Idling rate of a user."
},
"display_max_routes_future_days": {
"type": "integer",
"title": "Display Maximum_Routes Number Of Future Days",
"description": "Display maximum_routes number of future days."
},
"SHOW_ALL_VEHICLES": {
"type": "string",
"title": "Show All Vehicles",
"description": "Show all vehicles, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"allowed_submember_types": {
"type": "array",
"items": {
"type": "string"
},
"title": "Allowed Submember Types",
"description": "Allowed sub-member types in the user's account."
},
"can_edit" : {
"type" : "boolean",
"title": "Can Edit",
"description": "If true, the user can edit the account data."
},
"can_delete" : {
"type" : "boolean",
"title": "Can Delete",
"description": "If true, the user can delete the account data."
},
"custom_data" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
},
"title": "Custom Data",
"description": "Custom data of the user's account."
},
"territories": {
"type": "array",
"description": "The territories assigned to the member.",
"items": {
"type": "string",
"description": "A territory ID"
}
}
}
}