Skip to content

Commit 1f44f37

Browse files
committed
Use friendlier date_time model
1 parent fcb8215 commit 1f44f37

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

lib/Model/SourceAttribution.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function getSource()
357357
/**
358358
* Sets source
359359
*
360-
* @param string $source The source identifier. The ID of the record as it appears in the original source.
360+
* @param string $source The source identifier.
361361
*
362362
* @return self
363363
*/
@@ -384,7 +384,7 @@ public function getSourceId()
384384
/**
385385
* Sets source_id
386386
*
387-
* @param string $source_id source_id
387+
* @param string $source_id The ID of the record as it appears in the original source.
388388
*
389389
* @return self
390390
*/

lib/Model/TimeConstraintV1.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* TimeConstraintV1 Class Doc Comment
3737
*
3838
* @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`.
4040
* @package OpenAPI\Client
4141
* @author OpenAPI Generator team
4242
* @link https://openapi-generator.tech
@@ -59,7 +59,7 @@ class TimeConstraintV1 implements ModelInterface, ArrayAccess, \JsonSerializable
5959
* @var string[]
6060
*/
6161
protected static $openAPITypes = [
62-
'type' => 'int',
62+
'type' => 'string',
6363
'value' => 'string'
6464
];
6565

@@ -236,9 +236,9 @@ public function getModelName()
236236
return self::$openAPIModelName;
237237
}
238238

239-
public const TYPE_NUMBER_0 = 0;
240-
public const TYPE_NUMBER_1 = 1;
241-
public const TYPE_NUMBER_2 = 2;
239+
public const TYPE_DEPART_NOW = 'depart_now';
240+
public const TYPE_DEPART_AT = 'depart_at';
241+
public const TYPE_ARRIVE_AT = 'arrive_at';
242242

243243
/**
244244
* Gets allowable values of the enum
@@ -248,9 +248,9 @@ public function getModelName()
248248
public function getTypeAllowableValues()
249249
{
250250
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,
254254
];
255255
}
256256

@@ -330,7 +330,7 @@ public function valid()
330330
/**
331331
* Gets type
332332
*
333-
* @return int
333+
* @return string
334334
*/
335335
public function getType()
336336
{
@@ -340,7 +340,7 @@ public function getType()
340340
/**
341341
* Sets type
342342
*
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.
344344
*
345345
* @return self
346346
*/
@@ -377,7 +377,7 @@ public function getValue()
377377
/**
378378
* Sets value
379379
*
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.
381381
*
382382
* @return self
383383
*/

0 commit comments

Comments
 (0)