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
$content = $response->getBody(); //stream goes to serializer
@@ -1474,7 +1465,7 @@ public function getDetailByIdRequest($event_template_id, $event_id, string $cont
1474
1465
*
1475
1466
* @param string $event_template_id The event template ID. (required)
1476
1467
* @param string $event_id The event ID. (required)
1477
-
* @param bool $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1468
+
* @param bool|null $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1478
1469
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRenderById'] to see the possible values for this operation
1479
1470
*
1480
1471
* @throws \HubSpot\Client\Crm\Timeline\ApiException on non-2xx response or if the response body is not in the expected format
@@ -1494,7 +1485,7 @@ public function getRenderById($event_template_id, $event_id, $detail = null, str
1494
1485
*
1495
1486
* @param string $event_template_id The event template ID. (required)
1496
1487
* @param string $event_id The event ID. (required)
1497
-
* @param bool $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1488
+
* @param bool|null $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1498
1489
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRenderById'] to see the possible values for this operation
1499
1490
*
1500
1491
* @throws \HubSpot\Client\Crm\Timeline\ApiException on non-2xx response or if the response body is not in the expected format
@@ -1527,18 +1518,6 @@ public function getRenderByIdWithHttpInfo($event_template_id, $event_id, $detail
1527
1518
1528
1519
$statusCode = $response->getStatusCode();
1529
1520
1530
-
if ($statusCode < 200 || $statusCode > 299) {
1531
-
thrownewApiException(
1532
-
sprintf(
1533
-
'[%d] Error connecting to the API (%s)',
1534
-
$statusCode,
1535
-
(string) $request->getUri()
1536
-
),
1537
-
$statusCode,
1538
-
$response->getHeaders(),
1539
-
(string) $response->getBody()
1540
-
);
1541
-
}
1542
1521
1543
1522
switch($statusCode) {
1544
1523
case200:
@@ -1597,6 +1576,19 @@ public function getRenderByIdWithHttpInfo($event_template_id, $event_id, $detail
1597
1576
];
1598
1577
}
1599
1578
1579
+
if ($statusCode < 200 || $statusCode > 299) {
1580
+
thrownewApiException(
1581
+
sprintf(
1582
+
'[%d] Error connecting to the API (%s)',
1583
+
$statusCode,
1584
+
(string) $request->getUri()
1585
+
),
1586
+
$statusCode,
1587
+
$response->getHeaders(),
1588
+
(string) $response->getBody()
1589
+
);
1590
+
}
1591
+
1600
1592
$returnType = 'string';
1601
1593
if ($returnType === '\SplFileObject') {
1602
1594
$content = $response->getBody(); //stream goes to serializer
@@ -1655,7 +1647,7 @@ public function getRenderByIdWithHttpInfo($event_template_id, $event_id, $detail
1655
1647
*
1656
1648
* @param string $event_template_id The event template ID. (required)
1657
1649
* @param string $event_id The event ID. (required)
1658
-
* @param bool $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1650
+
* @param bool|null $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1659
1651
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRenderById'] to see the possible values for this operation
1660
1652
*
1661
1653
* @throws \InvalidArgumentException
@@ -1678,7 +1670,7 @@ function ($response) {
1678
1670
*
1679
1671
* @param string $event_template_id The event template ID. (required)
1680
1672
* @param string $event_id The event ID. (required)
1681
-
* @param bool $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1673
+
* @param bool|null $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1682
1674
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRenderById'] to see the possible values for this operation
1683
1675
*
1684
1676
* @throws \InvalidArgumentException
@@ -1730,7 +1722,7 @@ function ($exception) {
1730
1722
*
1731
1723
* @param string $event_template_id The event template ID. (required)
1732
1724
* @param string $event_id The event ID. (required)
1733
-
* @param bool $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1725
+
* @param bool|null $detail Set to 'true', we want to render the `detailTemplate` instead of the `headerTemplate`. (optional)
1734
1726
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRenderById'] to see the possible values for this operation
0 commit comments