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
Copy file name to clipboardExpand all lines: lib/Model/TimeConstraintV1.php
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
* TimeConstraintV1 Class Doc Comment
37
37
*
38
38
* @category Class
39
-
* @description Specifies the time context for time-dependent routing (e.g., to account for traffic patterns or time-based access restrictions). Defaults \"now\" for traffic-influenced routing profiles like `auto_traffic`.
39
+
* @description Specifies the time context for time-dependent routing (e.g., to account for traffic patterns or time-based access restrictions). Defaults to \"depart_now\" for traffic-influenced routing profiles like `auto_traffic`.
40
40
* @package OpenAPI\Client
41
41
* @author OpenAPI Generator team
42
42
* @link https://openapi-generator.tech
@@ -59,7 +59,7 @@ class TimeConstraintV1 implements ModelInterface, ArrayAccess, \JsonSerializable
59
59
* @var string[]
60
60
*/
61
61
protectedstatic$openAPITypes = [
62
-
'type' => 'int',
62
+
'type' => 'string',
63
63
'value' => 'string'
64
64
];
65
65
@@ -236,9 +236,9 @@ public function getModelName()
236
236
returnself::$openAPIModelName;
237
237
}
238
238
239
-
publicconstTYPE_NUMBER_0 = 0;
240
-
publicconstTYPE_NUMBER_1 = 1;
241
-
publicconstTYPE_NUMBER_2 = 2;
239
+
publicconstTYPE_DEPART_NOW = 'depart_now';
240
+
publicconstTYPE_DEPART_AT = 'depart_at';
241
+
publicconstTYPE_ARRIVE_AT = 'arrive_at';
242
242
243
243
/**
244
244
* Gets allowable values of the enum
@@ -248,9 +248,9 @@ public function getModelName()
248
248
publicfunctiongetTypeAllowableValues()
249
249
{
250
250
return [
251
-
self::TYPE_NUMBER_0,
252
-
self::TYPE_NUMBER_1,
253
-
self::TYPE_NUMBER_2,
251
+
self::TYPE_DEPART_NOW,
252
+
self::TYPE_DEPART_AT,
253
+
self::TYPE_ARRIVE_AT,
254
254
];
255
255
}
256
256
@@ -330,7 +330,7 @@ public function valid()
330
330
/**
331
331
* Gets type
332
332
*
333
-
* @return int
333
+
* @return string
334
334
*/
335
335
publicfunctiongetType()
336
336
{
@@ -340,7 +340,7 @@ public function getType()
340
340
/**
341
341
* Sets type
342
342
*
343
-
* @param int $type The type of time constraint: 0 = current time (depart now), 1 = depart at the specified time, 2 = arrive by the specified time.
343
+
* @param string $type The type of time constraint: \"depart_now\" = depart now (current time), \"depart_at\" = depart at the specified time, \"arrive_at\" = arrive by the specified time.
344
344
*
345
345
* @return self
346
346
*/
@@ -377,7 +377,7 @@ public function getValue()
377
377
/**
378
378
* Sets value
379
379
*
380
-
* @param string|null $value The date and time in `YYYY-MM-DDTHH:MM` format (seconds are accepted, but will be ignored). The date and time are local (civil) time as observed at the location. Required for types 1 and 2. Must not be provided for type 0.
380
+
* @param string|null $value The date and time in `YYYY-MM-DDTHH:MM` format (seconds are accepted, but will be ignored). The date and time are local (civil) time as observed at the location. Required when type is depart_at or arrive_at. Must not be provided for depart_now.
0 commit comments