You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Creates a new limo booking with specified details. [See the documentation](https://api.limoexpress.me/api/docs/v1)",
8
+
description: "Creates a new limo booking with specified details. [See the documentation](https://api.limoexpress.me/api/docs/v1#/Bookings/createBooking)",
8
9
version: "0.0.1",
9
10
type: "action",
10
11
props: {
@@ -22,50 +23,271 @@ export default {
22
23
],
23
24
optional: true,
24
25
},
25
-
fromLocation: {
26
+
fromLocationName: {
27
+
type: "string",
28
+
label: "From Location Name",
29
+
description: "The pickup location name.",
30
+
},
31
+
fromLocationFullAddress: {
32
+
type: "string",
33
+
label: "From Location Full Address",
34
+
description: "The pickup location full address.",
35
+
},
36
+
fromLocationLatitude: {
37
+
type: "string",
38
+
label: "From Location Latitude",
39
+
description: "The pickup location latitude.",
40
+
optional: true,
41
+
},
42
+
fromLocationLongitude: {
43
+
type: "string",
44
+
label: "From Location Longitude",
45
+
description: "The pickup location longitude.",
46
+
optional: true,
47
+
},
48
+
toLocationName: {
49
+
type: "string",
50
+
label: "To Location Name",
51
+
description: "The dropoff location name.",
52
+
},
53
+
toLocationFullAddress: {
54
+
type: "string",
55
+
label: "To Location Full Address",
56
+
description: "The dropoff location full address.",
57
+
},
58
+
toLocationLatitude: {
59
+
type: "string",
60
+
label: "To Location Latitude",
61
+
description: "The dropoff location latitude.",
62
+
optional: true,
63
+
},
64
+
toLocationLongitude: {
65
+
type: "string",
66
+
label: "To Location Longitude",
67
+
description: "The dropoff location longitude.",
68
+
optional: true,
69
+
},
70
+
pickupTime: {
71
+
type: "string",
72
+
label: "Pickup Time",
73
+
description: "The time scheduled for pickup. **Format: YYYY-MM-DD HH:MM:SS**",
74
+
},
75
+
expectedDropOffTime: {
76
+
type: "string",
77
+
label: "Expected Drop Off Time",
78
+
description: "The expected drop off time. **Format: YYYY-MM-DD HH:MM:SS**",
79
+
optional: true,
80
+
},
81
+
expectedComebackTime: {
82
+
type: "string",
83
+
label: "Expected Comeback Time",
84
+
description: "The expected comeback time. **Format: YYYY-MM-DD HH:MM:SS**",
85
+
optional: true,
86
+
},
87
+
vehicleClassId: {
26
88
propDefinition: [
27
89
limoexpress,
28
-
"fromLocation",
90
+
"vehicleClassId",
29
91
],
92
+
optional: true,
30
93
},
31
-
pickupTime: {
94
+
vehicleId: {
32
95
propDefinition: [
33
96
limoexpress,
34
-
"pickupTime",
97
+
"vehicleId",
98
+
({ vehicleClassId })=>({
99
+
vehicleClassId,
100
+
}),
35
101
],
102
+
optional: true,
36
103
},
37
-
customerId: {
104
+
price: {
38
105
type: "string",
39
-
label: "Customer ID",
40
-
description: "ID of the customer for the booking.",
106
+
label: "Price",
107
+
description: "The price of the booking.",
108
+
optional: true,
41
109
},
42
-
toLocation: {
110
+
priceType: {
43
111
type: "string",
44
-
label: "To Location",
45
-
description: "The dropoff location.",
112
+
label: "Price Type",
113
+
description: "The type of price for the booking.",
114
+
options: PRICE_TYPE_OPTIONS,
46
115
optional: true,
47
116
},
48
-
vehicleId: {
117
+
commissionAmount: {
118
+
type: "string",
119
+
label: "Commission Amount",
120
+
description: "The commission amount for the booking.",
121
+
optional: true,
122
+
},
123
+
currencyId: {
124
+
propDefinition: [
125
+
limoexpress,
126
+
"currencyId",
127
+
],
128
+
optional: true,
129
+
},
130
+
vatPercentage: {
49
131
type: "string",
50
-
label: "Vehicle ID",
51
-
description: "ID of the vehicle to be used for the booking.",
132
+
label: "VAT Percentage",
133
+
description: "The VAT percentage for the booking.",
134
+
optional: true,
135
+
},
136
+
paymentMethodId: {
137
+
propDefinition: [
138
+
limoexpress,
139
+
"paymentMethodId",
140
+
],
141
+
optional: true,
142
+
},
143
+
distance: {
144
+
type: "integer",
145
+
label: "Distance",
146
+
description: "Number of kilometers/miles that booking will take.",
147
+
optional: true,
148
+
},
149
+
duration: {
150
+
type: "string",
151
+
label: "Duration",
152
+
description: "Number of hours and minutes that booking will take. **Format: HH:MM**",
153
+
optional: true,
154
+
},
155
+
paid: {
156
+
type: "boolean",
157
+
label: "Paid",
158
+
description: "Flag that says is the booking paid or not.",
159
+
optional: true,
160
+
},
161
+
confirmed: {
162
+
type: "boolean",
163
+
label: "Confirmed",
164
+
description: "Flag that says is the booking confirmed or not.",
165
+
optional: true,
166
+
},
167
+
roundTrip: {
168
+
type: "boolean",
169
+
label: "Round Trip",
170
+
description: "Flag that says is the booking a round trip or not.",
171
+
optional: true,
172
+
},
173
+
note: {
174
+
type: "string",
175
+
label: "Note",
176
+
description: "Note for the dispatcher.",
177
+
optional: true,
178
+
},
179
+
noteForDriver: {
180
+
type: "string",
181
+
label: "Note for Driver",
182
+
description: "Note for the driver.",
183
+
optional: true,
184
+
},
185
+
flightNumber: {
186
+
type: "string",
187
+
label: "Flight Number",
188
+
description: "Flight number for the booking.",
189
+
optional: true,
190
+
},
191
+
numOfWaitingHours: {
192
+
type: "integer",
193
+
label: "Number of Waiting Hours",
194
+
description: "Number of waiting hours.",
195
+
optional: true,
196
+
},
197
+
clientId: {
198
+
propDefinition: [
199
+
limoexpress,
200
+
"clientId",
201
+
],
202
+
optional: true,
203
+
},
204
+
waitingBoardText: {
205
+
type: "string",
206
+
label: "Waiting Board Text",
207
+
description: "Text that will be places on the waiting board.",
208
+
optional: true,
209
+
},
210
+
babySeatCount: {
211
+
type: "integer",
212
+
label: "Baby Seat Count",
213
+
description: "Number of baby seats that will be used for the booking.",
214
+
optional: true,
215
+
},
216
+
suitcaseCount: {
217
+
type: "integer",
218
+
label: "Suitcase Count",
219
+
description: "Number of suitcases that will be used for the booking.",
220
+
optional: true,
221
+
},
222
+
checkpoints: {
223
+
type: "string[]",
224
+
label: "Checkpoints",
225
+
description: "List of objects of checkpoints location and time. **Format: [{\"location\": { \"name\": string, \"full_address\": string, \"coordinates\": { \"lat\": number, \"lng\": number } }, \"time\": \"01:14\"}]**",
0 commit comments