Skip to content

Commit 326e97b

Browse files
committed
Updated Auto Generated Code
1 parent 472d093 commit 326e97b

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

src/Endpoints/TicketsTicketFidEndpoint.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Fortifi\Api\V1\Requests\TicketRequest;
55
use Fortifi\Api\V1\Requests\BoolMessageRequest;
6-
use Fortifi\Api\V1\Payloads\updateCcBccPayload;
6+
use Fortifi\Api\V1\Payloads\UpdateCcBccPayload;
77
use Fortifi\Api\V1\Payloads\TicketStatusPayload;
88
use Fortifi\Api\Core\ApiRequestDetail;
99
use Fortifi\Api\Core\ApiEndpoint;
@@ -98,14 +98,13 @@ public function setStatus(TicketStatusPayload $payload)
9898
/**
9999
* @summary Update Cc and Bcc fields for ticket
100100
*
101-
* If ```clearExistingCcBcc``` field is true, the ```add``` fields can be used
102-
* to re-populate the lists in the same call
101+
* Set respective fields to add and remove Cc/Bcc fields
103102
*
104-
* @param updateCcBccPayload $payload
103+
* @param UpdateCcBccPayload $payload
105104
*
106105
* @return BoolMessageRequest
107106
*/
108-
public function setUpdateCcBcc(updateCcBccPayload $payload)
107+
public function setUpdateCcBcc(UpdateCcBccPayload $payload)
109108
{
110109
$request = new BoolMessageRequest();
111110
$request->setConnection($this->_getConnection());

src/Payloads/UpdateCcBccPayload.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class UpdateCcBccPayload
1414
*/
1515
protected $_addBcc;
1616
protected $_removeBcc;
17+
/**
18+
* Set to ```true``` to remove all existing CC/BCC. Can be used with addCc/addBcc fields
19+
*/
1720
protected $_clearExistingCcBcc;
1821

1922
public function hydrate($data)
@@ -210,6 +213,8 @@ public function setClearExistingCcBcc(?bool $value)
210213
}
211214

212215
/**
216+
* Set to ```true``` to remove all existing CC/BCC. Can be used with addCc/addBcc fields
217+
*
213218
* @param bool $default
214219
*
215220
* @return boolean

swagger.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,7 +4533,11 @@ paths:
45334533
200:
45344534
description: Customer Orders
45354535
schema:
4536-
$ref: '#/definitions/Orders'
4536+
allOf:
4537+
- $ref: '#/definitions/Envelope'
4538+
- properties:
4539+
data:
4540+
$ref: '#/definitions/Orders'
45374541
x-404:
45384542
description: Customer not found
45394543
default:
@@ -8178,7 +8182,7 @@ paths:
81788182
put:
81798183
summary: Update Cc and Bcc fields for ticket
81808184
description: >
8181-
If ```clearExistingCcBcc``` field is true, the ```add``` fields can be used to re-populate the lists in the same call
8185+
Set respective fields to add and remove Cc/Bcc fields
81828186
tags:
81838187
- Support
81848188
security:
@@ -8191,16 +8195,19 @@ paths:
81918195
in: body
81928196
required: true
81938197
schema:
8194-
$ref: '#/definitions/updateCcBccPayload'
8198+
$ref: '#/definitions/UpdateCcBccPayload'
81958199
responses:
81968200
200:
8197-
description: Success Response
8201+
description: Returns true if changes are made and false if no changes made
81988202
schema:
81998203
allOf:
82008204
- $ref: '#/definitions/Envelope'
82018205
- properties:
82028206
data:
82038207
$ref: '#/definitions/BoolMessage'
8208+
x-400:
8209+
description: |
8210+
Invalid data supplied
82048211
default:
82058212
description: Error
82068213
schema:
@@ -12747,7 +12754,7 @@ definitions:
1274712754
items:
1274812755
$ref: '#/definitions/keyValuePayload'
1274912756

12750-
updateCcBccPayload:
12757+
UpdateCcBccPayload:
1275112758
properties:
1275212759
addCc:
1275312760
type: array
@@ -12758,6 +12765,7 @@ definitions:
1275812765
type: array
1275912766
items:
1276012767
type: string
12768+
description: Array of email addresses
1276112769
addBcc:
1276212770
type: array
1276312771
description: key = Email | value = Display Name
@@ -12767,7 +12775,9 @@ definitions:
1276712775
type: array
1276812776
items:
1276912777
type: string
12778+
description: Array of email addresses
1277012779
clearExistingCcBcc:
12780+
description: Set to ```true``` to remove all existing CC/BCC. Can be used with addCc/addBcc fields
1277112781
type: boolean
1277212782

1277312783
TicketReplyPayload:

0 commit comments

Comments
 (0)