Skip to content

Commit 472d093

Browse files
committed
Updated Auto Generated Code
1 parent 095b322 commit 472d093

14 files changed

+475
-361
lines changed

src/Definitions/FortifiApiDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FortifiApiDefinition extends ApiDefinition
1111
public function __construct()
1212
{
1313
$this->setTitle('Fortifi API');
14-
$this->setVersion('3.174.0');
14+
$this->setVersion('3.176.1');
1515
$this->setDescription(<<<DESCRIPTION
1616
The second version of the Fortifi API is an exciting step forward towards
1717
making it easier for businesses to have open access to their data. We created it

src/Endpoints/FortifiApi.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ public function review()
267267
return $endpoint;
268268
}
269269

270-
/**
271-
* @return ServicesEndpoint
272-
*/
273-
public function services()
274-
{
275-
$endpoint = new ServicesEndpoint();
276-
$endpoint->_buildFromEndpoint($this);
277-
return $endpoint;
278-
}
279-
280270
/**
281271
* @return SupportEndpoint
282272
*/

src/Endpoints/ProductsProductFidEndpoint.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
namespace Fortifi\Api\V1\Endpoints;
33

4+
use Fortifi\Api\V1\Requests\ProductRequest;
5+
use Fortifi\Api\Core\ApiRequestDetail;
46
use Fortifi\Api\Core\ApiEndpoint;
57

68
class ProductsProductFidEndpoint extends ApiEndpoint
@@ -60,4 +62,29 @@ public function skus()
6062
$endpoint->_buildFromEndpoint($this);
6163
return $endpoint;
6264
}
65+
66+
/**
67+
* @summary Retrieve Product Details
68+
*
69+
* @return ProductRequest
70+
*/
71+
public function retrieve()
72+
{
73+
$request = new ProductRequest();
74+
$request->setConnection($this->_getConnection());
75+
$request->setEndpoint($this);
76+
77+
$detail = new ApiRequestDetail();
78+
$detail->setRequireAuth(true);
79+
$detail->setUrl($this->_buildUrl(
80+
str_replace(
81+
array_keys($this->_replacements),
82+
array_values($this->_replacements),
83+
'products/{productFid}'
84+
)
85+
));
86+
$detail->setMethod('GET');
87+
$request->setRequestDetail($detail);
88+
return $request;
89+
}
6390
}

src/Endpoints/ServicesEndpoint.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/Endpoints/ServicesServiceFidEndpoint.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Endpoints/ServicesServiceFidIncidentsEndpoint.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Endpoints/ServicesServiceFidIncidentsIncidentFidEndpoint.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Endpoints/ServicesServiceFidIncidentsIncidentFidUpdatesEndpoint.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/Endpoints/TicketsTicketFidEndpoint.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
use Fortifi\Api\V1\Requests\TicketRequest;
55
use Fortifi\Api\V1\Requests\BoolMessageRequest;
6+
use Fortifi\Api\V1\Payloads\updateCcBccPayload;
67
use Fortifi\Api\V1\Payloads\TicketStatusPayload;
78
use Fortifi\Api\Core\ApiRequestDetail;
89
use Fortifi\Api\Core\ApiEndpoint;
@@ -93,4 +94,35 @@ public function setStatus(TicketStatusPayload $payload)
9394
$request->setRequestDetail($detail);
9495
return $request;
9596
}
97+
98+
/**
99+
* @summary Update Cc and Bcc fields for ticket
100+
*
101+
* If ```clearExistingCcBcc``` field is true, the ```add``` fields can be used
102+
* to re-populate the lists in the same call
103+
*
104+
* @param updateCcBccPayload $payload
105+
*
106+
* @return BoolMessageRequest
107+
*/
108+
public function setUpdateCcBcc(updateCcBccPayload $payload)
109+
{
110+
$request = new BoolMessageRequest();
111+
$request->setConnection($this->_getConnection());
112+
$request->setEndpoint($this);
113+
114+
$detail = new ApiRequestDetail();
115+
$detail->setRequireAuth(true);
116+
$detail->setUrl($this->_buildUrl(
117+
str_replace(
118+
array_keys($this->_replacements),
119+
array_values($this->_replacements),
120+
'tickets/{ticketFid}/updateCcBcc'
121+
)
122+
));
123+
$detail->setBody(json_encode($payload));
124+
$detail->setMethod('PUT');
125+
$request->setRequestDetail($detail);
126+
return $request;
127+
}
96128
}

0 commit comments

Comments
 (0)