/
home
/
techb158
/
dev.balacoffee.com
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
FlexApi
/
V1
/
/home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/FlexApi/V1
mkdir
upload
Name
Size
Mode
Actions
Interaction/
-
0755
rm
AssessmentsContext.php
2276
0644
edit
dl
rm
AssessmentsInstance.php
4491
0644
edit
dl
rm
AssessmentsList.php
3190
0644
edit
dl
rm
AssessmentsOptions.php
2671
0644
edit
dl
rm
AssessmentsPage.php
1375
0644
edit
dl
rm
ChannelContext.php
1818
0644
edit
dl
rm
ChannelInstance.php
3707
0644
edit
dl
rm
ChannelList.php
6231
0644
edit
dl
rm
ChannelOptions.php
4659
0644
edit
dl
rm
ChannelPage.php
1148
0644
edit
dl
rm
ConfigurationContext.php
2382
0644
edit
dl
rm
ConfigurationInstance.php
8744
0644
edit
dl
rm
ConfigurationList.php
929
0644
edit
dl
rm
ConfigurationOptions.php
1623
0644
edit
dl
rm
ConfigurationPage.php
1184
0644
edit
dl
rm
FlexFlowContext.php
3597
0644
edit
dl
rm
FlexFlowInstance.php
4732
0644
edit
dl
rm
FlexFlowList.php
7066
0644
edit
dl
rm
FlexFlowOptions.php
28222
0644
edit
dl
rm
FlexFlowPage.php
1154
0644
edit
dl
rm
InsightsAssessmentsCommentInstance.php
2931
0644
edit
dl
rm
InsightsAssessmentsCommentList.php
7113
0644
edit
dl
rm
InsightsAssessmentsCommentOptions.php
3772
0644
edit
dl
rm
InsightsAssessmentsCommentPage.php
1465
0644
edit
dl
rm
InsightsQuestionnairesCategoryContext.php
2854
0644
edit
dl
rm
InsightsQuestionnairesCategoryInstance.php
4083
0644
edit
dl
rm
InsightsQuestionnairesCategoryList.php
6641
0644
edit
dl
rm
InsightsQuestionnairesCategoryOptions.php
5298
0644
edit
dl
rm
InsightsQuestionnairesCategoryPage.php
1489
0644
edit
dl
rm
InsightsQuestionnairesContext.php
3562
0644
edit
dl
rm
InsightsQuestionnairesInstance.php
4520
0644
edit
dl
rm
InsightsQuestionnairesList.php
6684
0644
edit
dl
rm
InsightsQuestionnairesOptions.php
10304
0644
edit
dl
rm
InsightsQuestionnairesPage.php
1441
0644
edit
dl
rm
InsightsQuestionnairesQuestionContext.php
3148
0644
edit
dl
rm
InsightsQuestionnairesQuestionInstance.php
4696
0644
edit
dl
rm
InsightsQuestionnairesQuestionList.php
7326
0644
edit
dl
rm
InsightsQuestionnairesQuestionOptions.php
7963
0644
edit
dl
rm
InsightsQuestionnairesQuestionPage.php
1489
0644
edit
dl
rm
InsightsSegmentsContext.php
2006
0644
edit
dl
rm
InsightsSegmentsInstance.php
5378
0644
edit
dl
rm
InsightsSegmentsList.php
5540
0644
edit
dl
rm
InsightsSegmentsOptions.php
3302
0644
edit
dl
rm
InsightsSegmentsPage.php
1405
0644
edit
dl
rm
InsightsSessionContext.php
1864
0644
edit
dl
rm
InsightsSessionInstance.php
3277
0644
edit
dl
rm
InsightsSessionList.php
1144
0644
edit
dl
rm
InsightsSessionOptions.php
1703
0644
edit
dl
rm
InsightsSessionPage.php
1399
0644
edit
dl
rm
InsightsSettingsAnswerSetsInstance.php
2308
0644
edit
dl
rm
InsightsSettingsAnswerSetsList.php
1822
0644
edit
dl
rm
InsightsSettingsAnswerSetsOptions.php
1635
0644
edit
dl
rm
InsightsSettingsAnswerSetsPage.php
1465
0644
edit
dl
rm
InsightsSettingsCommentInstance.php
2049
0644
edit
dl
rm
InsightsSettingsCommentList.php
1796
0644
edit
dl
rm
InsightsSettingsCommentOptions.php
1617
0644
edit
dl
rm
InsightsSettingsCommentPage.php
1447
0644
edit
dl
rm
InsightsUserRolesContext.php
1878
0644
edit
dl
rm
InsightsUserRolesInstance.php
2970
0644
edit
dl
rm
InsightsUserRolesList.php
1156
0644
edit
dl
rm
InsightsUserRolesOptions.php
1709
0644
edit
dl
rm
InsightsUserRolesPage.php
1411
0644
edit
dl
rm
InteractionContext.php
3207
0644
edit
dl
rm
InteractionInstance.php
3271
0644
edit
dl
rm
InteractionList.php
1818
0644
edit
dl
rm
InteractionPage.php
1172
0644
edit
dl
rm
WebChannelContext.php
2502
0644
edit
dl
rm
WebChannelInstance.php
3888
0644
edit
dl
rm
WebChannelList.php
5933
0644
edit
dl
rm
WebChannelOptions.php
3863
0644
edit
dl
rm
WebChannelPage.php
1166
0644
edit
dl
rm
Edit:
/home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/FlexApi/V1/FlexFlowOptions.php
(28222B)
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\FlexApi\V1; use Twilio\Options; use Twilio\Values; abstract class FlexFlowOptions { /** * @param string $friendlyName The `friendly_name` of the Flex Flow resources * to read * @return ReadFlexFlowOptions Options builder */ public static function read(string $friendlyName = Values::NONE): ReadFlexFlowOptions { return new ReadFlexFlowOptions($friendlyName); } /** * @param string $contactIdentity The channel contact's Identity * @param bool $enabled Whether the new Flex Flow is enabled * @param string $integrationType The software that will handle inbound * messages. * @param string $integrationFlowSid The SID of the Studio Flow * @param string $integrationUrl The External Webhook URL * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @param string $integrationWorkflowSid The Workflow SID for a new Task * @param string $integrationChannel The Task Channel for a new Task * @param int $integrationTimeout The Task timeout in seconds for a new Task * @param int $integrationPriority The Task priority of a new Task * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure * @return CreateFlexFlowOptions Options builder */ public static function create(string $contactIdentity = Values::NONE, bool $enabled = Values::NONE, string $integrationType = Values::NONE, string $integrationFlowSid = Values::NONE, string $integrationUrl = Values::NONE, string $integrationWorkspaceSid = Values::NONE, string $integrationWorkflowSid = Values::NONE, string $integrationChannel = Values::NONE, int $integrationTimeout = Values::NONE, int $integrationPriority = Values::NONE, bool $integrationCreationOnMessage = Values::NONE, bool $longLived = Values::NONE, bool $janitorEnabled = Values::NONE, int $integrationRetryCount = Values::NONE): CreateFlexFlowOptions { return new CreateFlexFlowOptions($contactIdentity, $enabled, $integrationType, $integrationFlowSid, $integrationUrl, $integrationWorkspaceSid, $integrationWorkflowSid, $integrationChannel, $integrationTimeout, $integrationPriority, $integrationCreationOnMessage, $longLived, $janitorEnabled, $integrationRetryCount); } /** * @param string $friendlyName A string to describe the resource * @param string $chatServiceSid The SID of the chat service * @param string $channelType The channel type * @param string $contactIdentity The channel contact's Identity * @param bool $enabled Whether the new Flex Flow is enabled * @param string $integrationType The software that will handle inbound * messages. * @param string $integrationFlowSid The SID of the Studio Flow * @param string $integrationUrl The External Webhook URL * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @param string $integrationWorkflowSid The Workflow SID for a new Task * @param string $integrationChannel The Task Channel for a new Task * @param int $integrationTimeout The Task timeout in seconds for a new Task * @param int $integrationPriority The Task priority of a new Task * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure * @return UpdateFlexFlowOptions Options builder */ public static function update(string $friendlyName = Values::NONE, string $chatServiceSid = Values::NONE, string $channelType = Values::NONE, string $contactIdentity = Values::NONE, bool $enabled = Values::NONE, string $integrationType = Values::NONE, string $integrationFlowSid = Values::NONE, string $integrationUrl = Values::NONE, string $integrationWorkspaceSid = Values::NONE, string $integrationWorkflowSid = Values::NONE, string $integrationChannel = Values::NONE, int $integrationTimeout = Values::NONE, int $integrationPriority = Values::NONE, bool $integrationCreationOnMessage = Values::NONE, bool $longLived = Values::NONE, bool $janitorEnabled = Values::NONE, int $integrationRetryCount = Values::NONE): UpdateFlexFlowOptions { return new UpdateFlexFlowOptions($friendlyName, $chatServiceSid, $channelType, $contactIdentity, $enabled, $integrationType, $integrationFlowSid, $integrationUrl, $integrationWorkspaceSid, $integrationWorkflowSid, $integrationChannel, $integrationTimeout, $integrationPriority, $integrationCreationOnMessage, $longLived, $janitorEnabled, $integrationRetryCount); } } class ReadFlexFlowOptions extends Options { /** * @param string $friendlyName The `friendly_name` of the Flex Flow resources * to read */ public function __construct(string $friendlyName = Values::NONE) { $this->options['friendlyName'] = $friendlyName; } /** * The `friendly_name` of the Flex Flow resources to read. * * @param string $friendlyName The `friendly_name` of the Flex Flow resources * to read * @return $this Fluent Builder */ public function setFriendlyName(string $friendlyName): self { $this->options['friendlyName'] = $friendlyName; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.FlexApi.V1.ReadFlexFlowOptions ' . $options . ']'; } } class CreateFlexFlowOptions extends Options { /** * @param string $contactIdentity The channel contact's Identity * @param bool $enabled Whether the new Flex Flow is enabled * @param string $integrationType The software that will handle inbound * messages. * @param string $integrationFlowSid The SID of the Studio Flow * @param string $integrationUrl The External Webhook URL * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @param string $integrationWorkflowSid The Workflow SID for a new Task * @param string $integrationChannel The Task Channel for a new Task * @param int $integrationTimeout The Task timeout in seconds for a new Task * @param int $integrationPriority The Task priority of a new Task * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure */ public function __construct(string $contactIdentity = Values::NONE, bool $enabled = Values::NONE, string $integrationType = Values::NONE, string $integrationFlowSid = Values::NONE, string $integrationUrl = Values::NONE, string $integrationWorkspaceSid = Values::NONE, string $integrationWorkflowSid = Values::NONE, string $integrationChannel = Values::NONE, int $integrationTimeout = Values::NONE, int $integrationPriority = Values::NONE, bool $integrationCreationOnMessage = Values::NONE, bool $longLived = Values::NONE, bool $janitorEnabled = Values::NONE, int $integrationRetryCount = Values::NONE) { $this->options['contactIdentity'] = $contactIdentity; $this->options['enabled'] = $enabled; $this->options['integrationType'] = $integrationType; $this->options['integrationFlowSid'] = $integrationFlowSid; $this->options['integrationUrl'] = $integrationUrl; $this->options['integrationWorkspaceSid'] = $integrationWorkspaceSid; $this->options['integrationWorkflowSid'] = $integrationWorkflowSid; $this->options['integrationChannel'] = $integrationChannel; $this->options['integrationTimeout'] = $integrationTimeout; $this->options['integrationPriority'] = $integrationPriority; $this->options['integrationCreationOnMessage'] = $integrationCreationOnMessage; $this->options['longLived'] = $longLived; $this->options['janitorEnabled'] = $janitorEnabled; $this->options['integrationRetryCount'] = $integrationRetryCount; } /** * The channel contact's Identity. * * @param string $contactIdentity The channel contact's Identity * @return $this Fluent Builder */ public function setContactIdentity(string $contactIdentity): self { $this->options['contactIdentity'] = $contactIdentity; return $this; } /** * Whether the new Flex Flow is enabled. * * @param bool $enabled Whether the new Flex Flow is enabled * @return $this Fluent Builder */ public function setEnabled(bool $enabled): self { $this->options['enabled'] = $enabled; return $this; } /** * The software that will handle inbound messages. [Integration Type](https://www.twilio.com/docs/flex/developer/messaging/manage-flows#integration-types) can be: `studio`, `external`, or `task`. * * @param string $integrationType The software that will handle inbound * messages. * @return $this Fluent Builder */ public function setIntegrationType(string $integrationType): self { $this->options['integrationType'] = $integrationType; return $this; } /** * The SID of the Studio Flow. Required when `integrationType` is `studio`. * * @param string $integrationFlowSid The SID of the Studio Flow * @return $this Fluent Builder */ public function setIntegrationFlowSid(string $integrationFlowSid): self { $this->options['integrationFlowSid'] = $integrationFlowSid; return $this; } /** * The URL of the external webhook. Required when `integrationType` is `external`. * * @param string $integrationUrl The External Webhook URL * @return $this Fluent Builder */ public function setIntegrationUrl(string $integrationUrl): self { $this->options['integrationUrl'] = $integrationUrl; return $this; } /** * The Workspace SID for a new Task. Required when `integrationType` is `task`. * * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @return $this Fluent Builder */ public function setIntegrationWorkspaceSid(string $integrationWorkspaceSid): self { $this->options['integrationWorkspaceSid'] = $integrationWorkspaceSid; return $this; } /** * The Workflow SID for a new Task. Required when `integrationType` is `task`. * * @param string $integrationWorkflowSid The Workflow SID for a new Task * @return $this Fluent Builder */ public function setIntegrationWorkflowSid(string $integrationWorkflowSid): self { $this->options['integrationWorkflowSid'] = $integrationWorkflowSid; return $this; } /** * The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`. * * @param string $integrationChannel The Task Channel for a new Task * @return $this Fluent Builder */ public function setIntegrationChannel(string $integrationChannel): self { $this->options['integrationChannel'] = $integrationChannel; return $this; } /** * The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. * * @param int $integrationTimeout The Task timeout in seconds for a new Task * @return $this Fluent Builder */ public function setIntegrationTimeout(int $integrationTimeout): self { $this->options['integrationTimeout'] = $integrationTimeout; return $this; } /** * The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. * * @param int $integrationPriority The Task priority of a new Task * @return $this Fluent Builder */ public function setIntegrationPriority(int $integrationPriority): self { $this->options['integrationPriority'] = $integrationPriority; return $this; } /** * In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. * * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @return $this Fluent Builder */ public function setIntegrationCreationOnMessage(bool $integrationCreationOnMessage): self { $this->options['integrationCreationOnMessage'] = $integrationCreationOnMessage; return $this; } /** * When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. * * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @return $this Fluent Builder */ public function setLongLived(bool $longLived): self { $this->options['longLived'] = $longLived; return $this; } /** * When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @return $this Fluent Builder */ public function setJanitorEnabled(bool $janitorEnabled): self { $this->options['janitorEnabled'] = $janitorEnabled; return $this; } /** * The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise. * * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure * @return $this Fluent Builder */ public function setIntegrationRetryCount(int $integrationRetryCount): self { $this->options['integrationRetryCount'] = $integrationRetryCount; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.FlexApi.V1.CreateFlexFlowOptions ' . $options . ']'; } } class UpdateFlexFlowOptions extends Options { /** * @param string $friendlyName A string to describe the resource * @param string $chatServiceSid The SID of the chat service * @param string $channelType The channel type * @param string $contactIdentity The channel contact's Identity * @param bool $enabled Whether the new Flex Flow is enabled * @param string $integrationType The software that will handle inbound * messages. * @param string $integrationFlowSid The SID of the Studio Flow * @param string $integrationUrl The External Webhook URL * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @param string $integrationWorkflowSid The Workflow SID for a new Task * @param string $integrationChannel The Task Channel for a new Task * @param int $integrationTimeout The Task timeout in seconds for a new Task * @param int $integrationPriority The Task priority of a new Task * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure */ public function __construct(string $friendlyName = Values::NONE, string $chatServiceSid = Values::NONE, string $channelType = Values::NONE, string $contactIdentity = Values::NONE, bool $enabled = Values::NONE, string $integrationType = Values::NONE, string $integrationFlowSid = Values::NONE, string $integrationUrl = Values::NONE, string $integrationWorkspaceSid = Values::NONE, string $integrationWorkflowSid = Values::NONE, string $integrationChannel = Values::NONE, int $integrationTimeout = Values::NONE, int $integrationPriority = Values::NONE, bool $integrationCreationOnMessage = Values::NONE, bool $longLived = Values::NONE, bool $janitorEnabled = Values::NONE, int $integrationRetryCount = Values::NONE) { $this->options['friendlyName'] = $friendlyName; $this->options['chatServiceSid'] = $chatServiceSid; $this->options['channelType'] = $channelType; $this->options['contactIdentity'] = $contactIdentity; $this->options['enabled'] = $enabled; $this->options['integrationType'] = $integrationType; $this->options['integrationFlowSid'] = $integrationFlowSid; $this->options['integrationUrl'] = $integrationUrl; $this->options['integrationWorkspaceSid'] = $integrationWorkspaceSid; $this->options['integrationWorkflowSid'] = $integrationWorkflowSid; $this->options['integrationChannel'] = $integrationChannel; $this->options['integrationTimeout'] = $integrationTimeout; $this->options['integrationPriority'] = $integrationPriority; $this->options['integrationCreationOnMessage'] = $integrationCreationOnMessage; $this->options['longLived'] = $longLived; $this->options['janitorEnabled'] = $janitorEnabled; $this->options['integrationRetryCount'] = $integrationRetryCount; } /** * A descriptive string that you create to describe the Flex Flow resource. * * @param string $friendlyName A string to describe the resource * @return $this Fluent Builder */ public function setFriendlyName(string $friendlyName): self { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The SID of the chat service. * * @param string $chatServiceSid The SID of the chat service * @return $this Fluent Builder */ public function setChatServiceSid(string $chatServiceSid): self { $this->options['chatServiceSid'] = $chatServiceSid; return $this; } /** * The channel type. One of `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. By default, Studio’s Send to Flex widget passes it on to the Task attributes for Tasks created based on this Flex Flow. The Task attributes will be used by the Flex UI to render the respective Task as appropriate (applying channel-specific design and length limits). If `channelType` is `facebook`, `whatsapp` or `line`, the Send to Flex widget should set the Task Channel to Programmable Chat. * * @param string $channelType The channel type * @return $this Fluent Builder */ public function setChannelType(string $channelType): self { $this->options['channelType'] = $channelType; return $this; } /** * The channel contact's Identity. * * @param string $contactIdentity The channel contact's Identity * @return $this Fluent Builder */ public function setContactIdentity(string $contactIdentity): self { $this->options['contactIdentity'] = $contactIdentity; return $this; } /** * Whether the new Flex Flow is enabled. * * @param bool $enabled Whether the new Flex Flow is enabled * @return $this Fluent Builder */ public function setEnabled(bool $enabled): self { $this->options['enabled'] = $enabled; return $this; } /** * The software that will handle inbound messages. [Integration Type](https://www.twilio.com/docs/flex/developer/messaging/manage-flows#integration-types) can be: `studio`, `external`, or `task`. * * @param string $integrationType The software that will handle inbound * messages. * @return $this Fluent Builder */ public function setIntegrationType(string $integrationType): self { $this->options['integrationType'] = $integrationType; return $this; } /** * The SID of the Studio Flow. Required when `integrationType` is `studio`. * * @param string $integrationFlowSid The SID of the Studio Flow * @return $this Fluent Builder */ public function setIntegrationFlowSid(string $integrationFlowSid): self { $this->options['integrationFlowSid'] = $integrationFlowSid; return $this; } /** * The URL of the external webhook. Required when `integrationType` is `external`. * * @param string $integrationUrl The External Webhook URL * @return $this Fluent Builder */ public function setIntegrationUrl(string $integrationUrl): self { $this->options['integrationUrl'] = $integrationUrl; return $this; } /** * The Workspace SID for a new Task. Required when `integrationType` is `task`. * * @param string $integrationWorkspaceSid The Workspace SID for a new Task * @return $this Fluent Builder */ public function setIntegrationWorkspaceSid(string $integrationWorkspaceSid): self { $this->options['integrationWorkspaceSid'] = $integrationWorkspaceSid; return $this; } /** * The Workflow SID for a new Task. Required when `integrationType` is `task`. * * @param string $integrationWorkflowSid The Workflow SID for a new Task * @return $this Fluent Builder */ public function setIntegrationWorkflowSid(string $integrationWorkflowSid): self { $this->options['integrationWorkflowSid'] = $integrationWorkflowSid; return $this; } /** * The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`. * * @param string $integrationChannel The Task Channel for a new Task * @return $this Fluent Builder */ public function setIntegrationChannel(string $integrationChannel): self { $this->options['integrationChannel'] = $integrationChannel; return $this; } /** * The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. * * @param int $integrationTimeout The Task timeout in seconds for a new Task * @return $this Fluent Builder */ public function setIntegrationTimeout(int $integrationTimeout): self { $this->options['integrationTimeout'] = $integrationTimeout; return $this; } /** * The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. * * @param int $integrationPriority The Task priority of a new Task * @return $this Fluent Builder */ public function setIntegrationPriority(int $integrationPriority): self { $this->options['integrationPriority'] = $integrationPriority; return $this; } /** * In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. * * @param bool $integrationCreationOnMessage Whether to create a Task when the * first message arrives * @return $this Fluent Builder */ public function setIntegrationCreationOnMessage(bool $integrationCreationOnMessage): self { $this->options['integrationCreationOnMessage'] = $integrationCreationOnMessage; return $this; } /** * When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. * * @param bool $longLived Reuse this chat channel for future interactions with * a contact * @return $this Fluent Builder */ public function setLongLived(bool $longLived): self { $this->options['longLived'] = $longLived; return $this; } /** * When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * * @param bool $janitorEnabled Remove active Proxy sessions if the * corresponding Task is deleted * @return $this Fluent Builder */ public function setJanitorEnabled(bool $janitorEnabled): self { $this->options['janitorEnabled'] = $janitorEnabled; return $this; } /** * The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise. * * @param int $integrationRetryCount The number of times to retry the Studio * Flow or webhook in case of failure * @return $this Fluent Builder */ public function setIntegrationRetryCount(int $integrationRetryCount): self { $this->options['integrationRetryCount'] = $integrationRetryCount; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.FlexApi.V1.UpdateFlexFlowOptions ' . $options . ']'; } }
Save
cmd:
run