Skip to content

Commit 4a448c9

Browse files
committed
Updated Auto Generated Code
1 parent 4fc9f85 commit 4a448c9

File tree

6 files changed

+640
-3
lines changed

6 files changed

+640
-3
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.150.0');
14+
$this->setVersion('3.151.0');
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/InteractionsEndpoint.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,14 @@ public function journey()
4545
$endpoint->_buildFromEndpoint($this);
4646
return $endpoint;
4747
}
48+
49+
/**
50+
* @return InteractionsTicketEndpoint
51+
*/
52+
public function ticket()
53+
{
54+
$endpoint = new InteractionsTicketEndpoint();
55+
$endpoint->_buildFromEndpoint($this);
56+
return $endpoint;
57+
}
4858
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
namespace Fortifi\Api\V1\Endpoints;
3+
4+
use Fortifi\Api\V1\Requests\BoolMessageRequest;
5+
use Fortifi\Api\V1\Payloads\CreateInteractionTicketPayload;
6+
use Fortifi\Api\Core\ApiRequestDetail;
7+
use Fortifi\Api\Core\ApiEndpoint;
8+
9+
class InteractionsTicketEndpoint extends ApiEndpoint
10+
{
11+
protected $_path = 'interactions/ticket';
12+
protected $_replacements = [];
13+
14+
public function __construct()
15+
{
16+
}
17+
18+
/**
19+
* @summary Create an Interaction ticket
20+
*
21+
* The attachments property is an array of unique filenames that have been
22+
* created using ```/upload/uploadUrl```
23+
*
24+
* @param CreateInteractionTicketPayload $payload
25+
*
26+
* @return BoolMessageRequest
27+
*/
28+
public function create(CreateInteractionTicketPayload $payload)
29+
{
30+
$request = new BoolMessageRequest();
31+
$request->setConnection($this->_getConnection());
32+
$request->setEndpoint($this);
33+
34+
$detail = new ApiRequestDetail();
35+
$detail->setRequireAuth(true);
36+
$detail->setUrl($this->_buildUrl('interactions/ticket'));
37+
$detail->setBody(json_encode($payload));
38+
$detail->setMethod('POST');
39+
$request->setRequestDetail($detail);
40+
return $request;
41+
}
42+
}

0 commit comments

Comments
 (0)