From 7aeeec997c256b734e0d5901e6e6b689c274ad5c Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Mon, 6 Jan 2025 17:50:16 +0530 Subject: [PATCH] chore: to check diff from param name change --- .../V1/Assistant/FeedbackModels.php | 4 +- .../Assistants/V1/Assistant/MessageModels.php | 2 +- .../Rest/Assistants/V1/AssistantModels.php | 22 ++++----- .../Rest/Assistants/V1/KnowledgeModels.php | 8 ++-- src/Twilio/Rest/Assistants/V1/ToolModels.php | 6 +-- src/Twilio/Rest/Content/V1/ContentModels.php | 46 +++++++++---------- .../InstalledAddOnUsageModels.php | 4 +- .../V1/ReferralConversionModels.php | 2 +- 8 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php b/src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php index 4da9c289bb..75afd229de 100644 --- a/src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php +++ b/src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php @@ -44,9 +44,9 @@ class AssistantsV1ServiceCreateFeedbackRequest implements \JsonSerializable protected $sessionId; protected $text; public function __construct(array $payload = []) { - $this->messageId = Values::array_get($payload, 'messageId'); + $this->messageId = Values::array_get($payload, 'message_id'); $this->score = Values::array_get($payload, 'score'); - $this->sessionId = Values::array_get($payload, 'sessionId'); + $this->sessionId = Values::array_get($payload, 'session_id'); $this->text = Values::array_get($payload, 'text'); } diff --git a/src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php b/src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php index 55c8f494aa..bfcffdb69b 100644 --- a/src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php +++ b/src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php @@ -48,7 +48,7 @@ class AssistantsV1ServiceAssistantSendMessageRequest implements \JsonSerializabl protected $mode; public function __construct(array $payload = []) { $this->identity = Values::array_get($payload, 'identity'); - $this->sessionId = Values::array_get($payload, 'sessionId'); + $this->sessionId = Values::array_get($payload, 'session_id'); $this->body = Values::array_get($payload, 'body'); $this->webhook = Values::array_get($payload, 'webhook'); $this->mode = Values::array_get($payload, 'mode'); diff --git a/src/Twilio/Rest/Assistants/V1/AssistantModels.php b/src/Twilio/Rest/Assistants/V1/AssistantModels.php index 680a1808f5..40e34b0344 100644 --- a/src/Twilio/Rest/Assistants/V1/AssistantModels.php +++ b/src/Twilio/Rest/Assistants/V1/AssistantModels.php @@ -72,8 +72,8 @@ class AssistantsV1ServiceCustomerAi implements \JsonSerializable protected $perceptionEngineEnabled; protected $personalizationEngineEnabled; public function __construct(array $payload = []) { - $this->perceptionEngineEnabled = Values::array_get($payload, 'perceptionEngineEnabled'); - $this->personalizationEngineEnabled = Values::array_get($payload, 'personalizationEngineEnabled'); + $this->perceptionEngineEnabled = Values::array_get($payload, 'perception_engine_enabled'); + $this->personalizationEngineEnabled = Values::array_get($payload, 'personalization_engine_enabled'); } public function toArray(): array @@ -101,9 +101,9 @@ class AssistantsV1ServiceSegmentCredential implements \JsonSerializable protected $spaceId; protected $writeKey; public function __construct(array $payload = []) { - $this->profileApiKey = Values::array_get($payload, 'profileApiKey'); - $this->spaceId = Values::array_get($payload, 'spaceId'); - $this->writeKey = Values::array_get($payload, 'writeKey'); + $this->profileApiKey = Values::array_get($payload, 'profile_api_key'); + $this->spaceId = Values::array_get($payload, 'space_id'); + $this->writeKey = Values::array_get($payload, 'write_key'); } public function toArray(): array @@ -136,11 +136,11 @@ class AssistantsV1ServiceCreateAssistantRequest implements \JsonSerializable protected $personalityPrompt; protected $segmentCredential; public function __construct(array $payload = []) { - $this->customerAi = Values::array_get($payload, 'customerAi'); + $this->customerAi = Values::array_get($payload, 'customer_ai'); $this->name = Values::array_get($payload, 'name'); $this->owner = Values::array_get($payload, 'owner'); - $this->personalityPrompt = Values::array_get($payload, 'personalityPrompt'); - $this->segmentCredential = Values::array_get($payload, 'segmentCredential'); + $this->personalityPrompt = Values::array_get($payload, 'personality_prompt'); + $this->segmentCredential = Values::array_get($payload, 'segment_credential'); } public function toArray(): array @@ -175,11 +175,11 @@ class AssistantsV1ServiceUpdateAssistantRequest implements \JsonSerializable protected $personalityPrompt; protected $segmentCredential; public function __construct(array $payload = []) { - $this->customerAi = Values::array_get($payload, 'customerAi'); + $this->customerAi = Values::array_get($payload, 'customer_ai'); $this->name = Values::array_get($payload, 'name'); $this->owner = Values::array_get($payload, 'owner'); - $this->personalityPrompt = Values::array_get($payload, 'personalityPrompt'); - $this->segmentCredential = Values::array_get($payload, 'segmentCredential'); + $this->personalityPrompt = Values::array_get($payload, 'personality_prompt'); + $this->segmentCredential = Values::array_get($payload, 'segment_credential'); } public function toArray(): array diff --git a/src/Twilio/Rest/Assistants/V1/KnowledgeModels.php b/src/Twilio/Rest/Assistants/V1/KnowledgeModels.php index a8ef8581a8..81f974aca1 100644 --- a/src/Twilio/Rest/Assistants/V1/KnowledgeModels.php +++ b/src/Twilio/Rest/Assistants/V1/KnowledgeModels.php @@ -75,7 +75,7 @@ public function __construct(array $payload = []) { $this->description = Values::array_get($payload, 'description'); $this->id = Values::array_get($payload, 'id'); $this->name = Values::array_get($payload, 'name'); - $this->policyDetails = Values::array_get($payload, 'policyDetails'); + $this->policyDetails = Values::array_get($payload, 'policy_details'); $this->type = Values::array_get($payload, 'type'); } @@ -113,9 +113,9 @@ class AssistantsV1ServiceCreateKnowledgeRequest implements \JsonSerializable protected $policy; protected $type; public function __construct(array $payload = []) { - $this->assistantId = Values::array_get($payload, 'assistantId'); + $this->assistantId = Values::array_get($payload, 'assistant_id'); $this->description = Values::array_get($payload, 'description'); - $this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails'); + $this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details'); $this->name = Values::array_get($payload, 'name'); $this->policy = Values::array_get($payload, 'policy'); $this->type = Values::array_get($payload, 'type'); @@ -155,7 +155,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest implements \JsonSerializable protected $type; public function __construct(array $payload = []) { $this->description = Values::array_get($payload, 'description'); - $this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails'); + $this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details'); $this->name = Values::array_get($payload, 'name'); $this->policy = Values::array_get($payload, 'policy'); $this->type = Values::array_get($payload, 'type'); diff --git a/src/Twilio/Rest/Assistants/V1/ToolModels.php b/src/Twilio/Rest/Assistants/V1/ToolModels.php index 3ea0bd056a..7fb3e1aba4 100644 --- a/src/Twilio/Rest/Assistants/V1/ToolModels.php +++ b/src/Twilio/Rest/Assistants/V1/ToolModels.php @@ -78,7 +78,7 @@ public function __construct(array $payload = []) { $this->description = Values::array_get($payload, 'description'); $this->id = Values::array_get($payload, 'id'); $this->name = Values::array_get($payload, 'name'); - $this->policyDetails = Values::array_get($payload, 'policyDetails'); + $this->policyDetails = Values::array_get($payload, 'policy_details'); $this->type = Values::array_get($payload, 'type'); } @@ -118,7 +118,7 @@ class AssistantsV1ServiceCreateToolRequest implements \JsonSerializable protected $policy; protected $type; public function __construct(array $payload = []) { - $this->assistantId = Values::array_get($payload, 'assistantId'); + $this->assistantId = Values::array_get($payload, 'assistant_id'); $this->description = Values::array_get($payload, 'description'); $this->enabled = Values::array_get($payload, 'enabled'); $this->meta = Values::array_get($payload, 'meta'); @@ -165,7 +165,7 @@ class AssistantsV1ServiceUpdateToolRequest implements \JsonSerializable protected $policy; protected $type; public function __construct(array $payload = []) { - $this->assistantId = Values::array_get($payload, 'assistantId'); + $this->assistantId = Values::array_get($payload, 'assistant_id'); $this->description = Values::array_get($payload, 'description'); $this->enabled = Values::array_get($payload, 'enabled'); $this->meta = Values::array_get($payload, 'meta'); diff --git a/src/Twilio/Rest/Content/V1/ContentModels.php b/src/Twilio/Rest/Content/V1/ContentModels.php index 0b076c91b8..462363cc79 100644 --- a/src/Twilio/Rest/Content/V1/ContentModels.php +++ b/src/Twilio/Rest/Content/V1/ContentModels.php @@ -658,9 +658,9 @@ class CatalogItem implements \JsonSerializable protected $description; public function __construct(array $payload = []) { $this->id = Values::array_get($payload, 'id'); - $this->sectionTitle = Values::array_get($payload, 'sectionTitle'); + $this->sectionTitle = Values::array_get($payload, 'section_title'); $this->name = Values::array_get($payload, 'name'); - $this->mediaUrl = Values::array_get($payload, 'mediaUrl'); + $this->mediaUrl = Values::array_get($payload, 'media_url'); $this->price = Values::array_get($payload, 'price'); $this->description = Values::array_get($payload, 'description'); } @@ -705,7 +705,7 @@ public function __construct(array $payload = []) { $this->subtitle = Values::array_get($payload, 'subtitle'); $this->id = Values::array_get($payload, 'id'); $this->items = Values::array_get($payload, 'items'); - $this->dynamicItems = Values::array_get($payload, 'dynamicItems'); + $this->dynamicItems = Values::array_get($payload, 'dynamic_items'); } public function toArray(): array @@ -905,7 +905,7 @@ class FlowsPage implements \JsonSerializable protected $layout; public function __construct(array $payload = []) { $this->id = Values::array_get($payload, 'id'); - $this->nextPageId = Values::array_get($payload, 'nextPageId'); + $this->nextPageId = Values::array_get($payload, 'next_page_id'); $this->title = Values::array_get($payload, 'title'); $this->subtitle = Values::array_get($payload, 'subtitle'); $this->layout = Values::array_get($payload, 'layout'); @@ -946,9 +946,9 @@ class TwilioFlows implements \JsonSerializable protected $type; public function __construct(array $payload = []) { $this->body = Values::array_get($payload, 'body'); - $this->buttonText = Values::array_get($payload, 'buttonText'); + $this->buttonText = Values::array_get($payload, 'button_text'); $this->subtitle = Values::array_get($payload, 'subtitle'); - $this->mediaUrl = Values::array_get($payload, 'mediaUrl'); + $this->mediaUrl = Values::array_get($payload, 'media_url'); $this->pages = Values::array_get($payload, 'pages'); $this->type = Values::array_get($payload, 'type'); } @@ -989,7 +989,7 @@ public function __construct(array $payload = []) { $this->body = Values::array_get($payload, 'body'); $this->footer = Values::array_get($payload, 'footer'); $this->media = Values::array_get($payload, 'media'); - $this->headerText = Values::array_get($payload, 'headerText'); + $this->headerText = Values::array_get($payload, 'header_text'); $this->actions = Values::array_get($payload, 'actions'); } @@ -1020,7 +1020,7 @@ class AuthenticationAction implements \JsonSerializable protected $copyCodeText; public function __construct(array $payload = []) { $this->type = Values::array_get($payload, 'type'); - $this->copyCodeText = Values::array_get($payload, 'copyCodeText'); + $this->copyCodeText = Values::array_get($payload, 'copy_code_text'); } public function toArray(): array @@ -1048,8 +1048,8 @@ class WhatsappAuthentication implements \JsonSerializable protected $codeExpirationMinutes; protected $actions; public function __construct(array $payload = []) { - $this->addSecurityRecommendation = Values::array_get($payload, 'addSecurityRecommendation'); - $this->codeExpirationMinutes = Values::array_get($payload, 'codeExpirationMinutes'); + $this->addSecurityRecommendation = Values::array_get($payload, 'add_security_recommendation'); + $this->codeExpirationMinutes = Values::array_get($payload, 'code_expiration_minutes'); $this->actions = Values::array_get($payload, 'actions'); } @@ -1097,18 +1097,18 @@ class Types implements \JsonSerializable protected $whatsappCard; protected $whatsappAuthentication; public function __construct(array $payload = []) { - $this->twilioText = Values::array_get($payload, 'twilioText'); - $this->twilioMedia = Values::array_get($payload, 'twilioMedia'); - $this->twilioLocation = Values::array_get($payload, 'twilioLocation'); - $this->twilioListPicker = Values::array_get($payload, 'twilioListPicker'); - $this->twilioCallToAction = Values::array_get($payload, 'twilioCallToAction'); - $this->twilioQuickReply = Values::array_get($payload, 'twilioQuickReply'); - $this->twilioCard = Values::array_get($payload, 'twilioCard'); - $this->twilioCatalog = Values::array_get($payload, 'twilioCatalog'); - $this->twilioCarousel = Values::array_get($payload, 'twilioCarousel'); - $this->twilioFlows = Values::array_get($payload, 'twilioFlows'); - $this->whatsappCard = Values::array_get($payload, 'whatsappCard'); - $this->whatsappAuthentication = Values::array_get($payload, 'whatsappAuthentication'); + $this->twilioText = Values::array_get($payload, 'twilio_text'); + $this->twilioMedia = Values::array_get($payload, 'twilio_media'); + $this->twilioLocation = Values::array_get($payload, 'twilio_location'); + $this->twilioListPicker = Values::array_get($payload, 'twilio_list_picker'); + $this->twilioCallToAction = Values::array_get($payload, 'twilio_call_to_action'); + $this->twilioQuickReply = Values::array_get($payload, 'twilio_quick_reply'); + $this->twilioCard = Values::array_get($payload, 'twilio_card'); + $this->twilioCatalog = Values::array_get($payload, 'twilio_catalog'); + $this->twilioCarousel = Values::array_get($payload, 'twilio_carousel'); + $this->twilioFlows = Values::array_get($payload, 'twilio_flows'); + $this->whatsappCard = Values::array_get($payload, 'whatsapp_card'); + $this->whatsappAuthentication = Values::array_get($payload, 'whatsapp_authentication'); } public function toArray(): array @@ -1148,7 +1148,7 @@ class ContentCreateRequest implements \JsonSerializable protected $language; protected $types; public function __construct(array $payload = []) { - $this->friendlyName = Values::array_get($payload, 'friendlyName'); + $this->friendlyName = Values::array_get($payload, 'friendly_name'); $this->variables = Values::array_get($payload, 'variables'); $this->language = Values::array_get($payload, 'language'); $this->types = Values::array_get($payload, 'types'); diff --git a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageModels.php b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageModels.php index 42e302eb3f..7209a53139 100644 --- a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageModels.php +++ b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageModels.php @@ -79,8 +79,8 @@ class MarketplaceV1InstalledAddOnInstalledAddOnUsage implements \JsonSerializabl protected $totalSubmitted; protected $billableItems; public function __construct(array $payload = []) { - $this->totalSubmitted = Values::array_get($payload, 'totalSubmitted'); - $this->billableItems = Values::array_get($payload, 'billableItems'); + $this->totalSubmitted = Values::array_get($payload, 'total_submitted'); + $this->billableItems = Values::array_get($payload, 'billable_items'); } public function toArray(): array diff --git a/src/Twilio/Rest/Marketplace/V1/ReferralConversionModels.php b/src/Twilio/Rest/Marketplace/V1/ReferralConversionModels.php index ef4d75997f..73cdda0120 100644 --- a/src/Twilio/Rest/Marketplace/V1/ReferralConversionModels.php +++ b/src/Twilio/Rest/Marketplace/V1/ReferralConversionModels.php @@ -35,7 +35,7 @@ class CreateReferralConversionRequest implements \JsonSerializable */ protected $referralAccountSid; public function __construct(array $payload = []) { - $this->referralAccountSid = Values::array_get($payload, 'referralAccountSid'); + $this->referralAccountSid = Values::array_get($payload, 'referral_account_sid'); } public function toArray(): array