-
Notifications
You must be signed in to change notification settings - Fork 5
/
Order.json
295 lines (295 loc) · 8.06 KB
/
Order.json
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
{
"title": "Order",
"description": "Json schema for an Order class, which is used for keeping client order information at certain address. For usage details see curl examples in Order group",
"type": "object",
"properties": {
"created_timestamp": {
"type": "integer",
"title": "Created Timestamp",
"description": "Timestamp of an order creation."
},
"updated_timestamp": {
"type": "integer",
"title": "Updated Timestamp",
"description": "Timestamp of an order creation."
},
"order_id": {
"type": "integer",
"title": "Order ID",
"description": "An unique internal ID of an order."
},
"order_status_id": {
"type": "integer",
"title": "Order status ID",
"enum": [
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
],
"description": "Order status ID. Available values: 0: New, 1: Inbound Scan, 2: Sorted by Territory, 3: Loaded, 4: Missing, 5: Damaged, 6: Manually Loaded, 7: Routed, 8: Unrouted, 9: Sorted by Route, 10: Route Started, 11: Failed, 12: Skipped, 13: Done, 14: Cancelled, 15: Scheduled"
},
"address_1": {
"type": "string",
"title": "Address 1",
"description": "address_1 field"
},
"address_2": {
"type": "string",
"title": "Address 2",
"description": "address_2 field"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "A unique identifier for the user to whom the route was assigned."
},
"cached_lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Cached latitude",
"description": "Cached latitude"
},
"cached_lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"title": "Cached longitude",
"description": "Cached longitude"
},
"color": {
"type": "string",
"title": "Color",
"description": "Order icon hexadecimal color on a map."
},
"curbside_lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Curbside latitude",
"description": "Curbside latitude"
},
"curbside_lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"title": "Curbside longitude",
"description": "Curbside longitude"
},
"in_route_count": {
"type": "integer",
"title": "In route count",
"description": "In how many routes is included address."
},
"last_visited_timestamp": {
"type": "integer",
"title": "Last visited timestamp",
"description": "When the last time an address was visited."
},
"last_routed_timestamp": {
"type": "integer",
"title": "Last routed timestamp",
"description": "When last time an address was included in a route."
},
"day_added_YYMMDD": {
"type": "string",
"title": "Day Added",
"description": "Order inserted date"
},
"day_scheduled_for_YYMMDD": {
"type": "string",
"title": "Day scheduled",
"description": "Date order was scheduled for"
},
"address_alias": {
"type": "string",
"title": "Address alias",
"description": "Address alias"
},
"local_time_window_start": {
"type": "integer",
"title": "Local time window start",
"description": "When a time window was started."
},
"local_time_window_end": {
"type": "integer",
"title": "Local time window end",
"description": "When a time window was ended."
},
"local_time_window_start_2": {
"type": "integer",
"title": "Local time window start 2",
"description": "When second time window was started."
},
"local_time_window_end_2": {
"type": "integer",
"title": "Local time window end 2",
"description": "When second time window was ended."
},
"service_time": {
"type": "integer",
"title": "Service time",
"description": "Consumed service time at an address."
},
"local_timezone_string": {
"type": "string",
"title": "Local timezone",
"description": "Local timezone"
},
"EXT_FIELD_first_name": {
"type": "string",
"title": "First name",
"description": "The first name of the receiving address"
},
"EXT_FIELD_last_name": {
"type": "string",
"title": "Last name",
"description": "The last name of the receiving address"
},
"EXT_FIELD_email": {
"type": "string",
"title": "Address email",
"description": "Address email"
},
"EXT_FIELD_phone": {
"type": "string",
"title": "Address phone number",
"description": "The phone number for the address"
},
"EXT_FIELD_custom_data": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "Order custom data",
"description": "A custom data of the order"
},
"EXT_FIELD_weight": {
"type": "number",
"title": "Order Weight",
"description": "The weight of the order's cargo."
},
"EXT_FIELD_cost": {
"type": "number",
"title": "Order Cost",
"description": "Order cost"
},
"EXT_FIELD_revenue": {
"type": "number",
"title": "Order Revenue",
"description": "Order revenue"
},
"EXT_FIELD_cube": {
"type": "number",
"title": "Order Cube",
"description": "The cubic volume that this order consumes/contains on a vehicle."
},
"EXT_FIELD_pieces": {
"type": "number",
"title": "Order Pieces",
"description": "The number of pieces/palllets that this order consumes/contains on a vehicle."
},
"address_city": {
"type": "string",
"title": "Address city",
"description": "The city the address is located in"
},
"address_state_id": {
"type": "string",
"nullable": true,
"title": "Address state id",
"description": "The state the address is located in"
},
"address_country_id": {
"type": "string",
"title": "Address country id",
"description": "The country the address is located in"
},
"address_zip": {
"type": "string",
"title": "Address zip",
"description": "The zip code the address is located in"
},
"order_icon": {
"type": "string",
"nullable": true,
"title": "Order icon",
"description": "URL to an order icon file"
},
"is_validated": {
"type": "boolean",
"title": "Is validated",
"description": "If true, the order is validated."
},
"is_pending": {
"type": "boolean",
"title": "Is pending",
"description": "If true, the order is pending."
},
"is_accepted": {
"type": "boolean",
"title": "Is accepted",
"description": "If true, the order is accepted."
},
"is_started": {
"type": "boolean",
"title": "Is started",
"description": "If true, the order is started."
},
"is_completed": {
"type": "boolean",
"title": "Is completed",
"description": "If true, the order is completed."
},
"custom_user_fields": {
"type": "array",
"items": {"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Order_custom_field.json"},
"title": "Custom User Fields",
"description": "Custom user fields"
},
"visited_count": {
"type": "integer",
"title": "Visited Count",
"description": "How many times the order visited."
},
"address_stop_type": {
"type": "string",
"enum": ["DELIVERY","PICKUP","BREAK","MEETUP","SERVICE","VISIT","DRIVEBY"],
"title": "Address stop type",
"description": "The type of stop that this is (DELIVERY,PICKUP,BREAK,MEETUP,SERVICE,VISIT,DRIVEBY)"
},
"last_status": {
"type": "string",
"title": "Last Status",
"description": "Last status of the order"
},
"sorted_on_date": {
"type": "string",
"title": "Sorted On Date",
"description": "An order sorted on date"
},
"tracking_number": {
"type": "string",
"title": "Tracking Number",
"description": "Systemwide unique code (chars<=255), which permits end-users (recipients) to track the status of their order"
},
"root_member_id": {
"type": "integer",
"title": "Root Member ID",
"description": "Root member ID"
},
"organization_id": {
"type": "integer",
"title": "Organization ID",
"description": "A unique ID of a group the organizations or partners."
},
"done_day_id": {
"type": "integer",
"title": "Done Day ID",
"description": "A day ID, when the order was completed."
},
"possession_day_id": {
"type": "integer",
"title": "possession Day ID",
"description": "A day ID, when the order was possessed by an organization (number of the days passed from 1/1/2010)."
}
}
}