Skip to content

Commit 4422506

Browse files
committed
[Librarian] Regenerated @ 8d92bd85f8ef40c37285966629e30e5c7cb9312b e615ab0d23ebf4a44fbefcca67df047f8de43ea5
1 parent de0b95f commit 4422506

File tree

6 files changed

+42
-102
lines changed

6 files changed

+42
-102
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
twilio-php Changelog
22
====================
33

4+
[2025-05-29] Version 8.6.2
5+
--------------------------
6+
**Api**
7+
- Added several usage category enums to `usage_record` API
8+
9+
**Numbers**
10+
- Update the porting documentation
11+
12+
**Verify**
13+
- Update `ienum` type for Channels in Verify Attempts API
14+
15+
416
[2025-05-13] Version 8.6.1
517
--------------------------
618
**Library - Fix**

src/Twilio/Rest/Messaging/V2/ChannelsSenderModels.php

Lines changed: 4 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,15 @@ public static function createMessagingV2ChannelsSenderWebhook(array $payload = [
4242
return new MessagingV2ChannelsSenderWebhook($payload);
4343
}
4444

45-
/**
46-
* @property string|null $email The email of the sender.
47-
* @property string|null $label The label of the sender.
48-
*/
49-
public static function createMessagingV2ChannelsSenderProfileEmails(array $payload = []): MessagingV2ChannelsSenderProfileEmails
50-
{
51-
return new MessagingV2ChannelsSenderProfileEmails($payload);
52-
}
53-
54-
/**
55-
* @property string|null $label The label of the sender.
56-
* @property string|null $website The website of the sender.
57-
*/
58-
public static function createMessagingV2ChannelsSenderProfileWebsites(array $payload = []): MessagingV2ChannelsSenderProfileWebsites
59-
{
60-
return new MessagingV2ChannelsSenderProfileWebsites($payload);
61-
}
62-
6345
/**
6446
* @property string|null $name The name of the sender.
6547
* @property string|null $about The about text of the sender.
6648
* @property string|null $address The address of the sender.
6749
* @property string|null $description The description of the sender.
68-
* @property MessagingV2ChannelsSenderProfileEmails[] $emails The emails of the sender.
50+
* @property array|null $emails The emails of the sender.
6951
* @property string|null $logoUrl The logo URL of the sender.
7052
* @property string|null $vertical The vertical of the sender. Allowed values are: - \"Automotive\" - \"Beauty, Spa and Salon\" - \"Clothing and Apparel\" - \"Education\" - \"Entertainment\" - \"Event Planning and Service\" - \"Finance and Banking\" - \"Food and Grocery\" - \"Public Service\" - \"Hotel and Lodging\" - \"Medical and Health\" - \"Non-profit\" - \"Professional Services\" - \"Shopping and Retail\" - \"Travel and Transportation\" - \"Restaurant\" - \"Other\"
71-
* @property MessagingV2ChannelsSenderProfileWebsites[] $websites The websites of the sender.
53+
* @property array|null $websites The websites of the sender.
7254
*/
7355
public static function createMessagingV2ChannelsSenderProfile(array $payload = []): MessagingV2ChannelsSenderProfile
7456
{
@@ -176,71 +158,17 @@ public function jsonSerialize(): array
176158
}
177159
}
178160

179-
class MessagingV2ChannelsSenderProfileEmails implements \JsonSerializable
180-
{
181-
/**
182-
* @property string|null $email The email of the sender.
183-
* @property string|null $label The label of the sender.
184-
*/
185-
protected $email;
186-
protected $label;
187-
public function __construct(array $payload = []) {
188-
$this->email = Values::array_get($payload, 'email');
189-
$this->label = Values::array_get($payload, 'label');
190-
}
191-
192-
public function toArray(): array
193-
{
194-
return $this->jsonSerialize();
195-
}
196-
197-
public function jsonSerialize(): array
198-
{
199-
return [
200-
'email' => $this->email,
201-
'label' => $this->label
202-
];
203-
}
204-
}
205-
206-
class MessagingV2ChannelsSenderProfileWebsites implements \JsonSerializable
207-
{
208-
/**
209-
* @property string|null $label The label of the sender.
210-
* @property string|null $website The website of the sender.
211-
*/
212-
protected $label;
213-
protected $website;
214-
public function __construct(array $payload = []) {
215-
$this->label = Values::array_get($payload, 'label');
216-
$this->website = Values::array_get($payload, 'website');
217-
}
218-
219-
public function toArray(): array
220-
{
221-
return $this->jsonSerialize();
222-
}
223-
224-
public function jsonSerialize(): array
225-
{
226-
return [
227-
'label' => $this->label,
228-
'website' => $this->website
229-
];
230-
}
231-
}
232-
233161
class MessagingV2ChannelsSenderProfile implements \JsonSerializable
234162
{
235163
/**
236164
* @property string|null $name The name of the sender.
237165
* @property string|null $about The about text of the sender.
238166
* @property string|null $address The address of the sender.
239167
* @property string|null $description The description of the sender.
240-
* @property MessagingV2ChannelsSenderProfileEmails[] $emails The emails of the sender.
168+
* @property array|null $emails The emails of the sender.
241169
* @property string|null $logoUrl The logo URL of the sender.
242170
* @property string|null $vertical The vertical of the sender. Allowed values are: - \"Automotive\" - \"Beauty, Spa and Salon\" - \"Clothing and Apparel\" - \"Education\" - \"Entertainment\" - \"Event Planning and Service\" - \"Finance and Banking\" - \"Food and Grocery\" - \"Public Service\" - \"Hotel and Lodging\" - \"Medical and Health\" - \"Non-profit\" - \"Professional Services\" - \"Shopping and Retail\" - \"Travel and Transportation\" - \"Restaurant\" - \"Other\"
243-
* @property MessagingV2ChannelsSenderProfileWebsites[] $websites The websites of the sender.
171+
* @property array|null $websites The websites of the sender.
244172
*/
245173
protected $name;
246174
protected $about;

src/Twilio/Rest/Numbers/V1.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
use Twilio\Rest\Numbers\V1\PortingPortabilityList;
2626
use Twilio\Rest\Numbers\V1\PortingWebhookConfigurationList;
2727
use Twilio\Rest\Numbers\V1\PortingWebhookConfigurationDeleteList;
28-
use Twilio\Rest\Numbers\V1\PortingWebhookConfigurationFetchList;
2928
use Twilio\Rest\Numbers\V1\SigningRequestConfigurationList;
29+
use Twilio\Rest\Numbers\V1\WebhookList;
3030
use Twilio\Version;
3131

3232
/**
@@ -37,8 +37,8 @@
3737
* @property PortingPortabilityList $portingPortabilities
3838
* @property PortingWebhookConfigurationList $portingWebhookConfigurations
3939
* @property PortingWebhookConfigurationDeleteList $portingWebhookConfigurationsDelete
40-
* @property PortingWebhookConfigurationFetchList $portingWebhookConfigurationFetch
4140
* @property SigningRequestConfigurationList $signingRequestConfigurations
41+
* @property WebhookList $webhook
4242
* @method \Twilio\Rest\Numbers\V1\BulkEligibilityContext bulkEligibilities(string $requestId)
4343
* @method \Twilio\Rest\Numbers\V1\PortingPortInContext portingPortIns(string $portInRequestSid)
4444
* @method \Twilio\Rest\Numbers\V1\PortingPortInPhoneNumberContext portingPortInPhoneNumber(string $portInRequestSid, string $phoneNumberSid)
@@ -54,8 +54,8 @@ class V1 extends Version
5454
protected $_portingPortabilities;
5555
protected $_portingWebhookConfigurations;
5656
protected $_portingWebhookConfigurationsDelete;
57-
protected $_portingWebhookConfigurationFetch;
5857
protected $_signingRequestConfigurations;
58+
protected $_webhook;
5959

6060
/**
6161
* Construct the V1 version of Numbers
@@ -124,14 +124,6 @@ protected function getPortingWebhookConfigurationsDelete(): PortingWebhookConfig
124124
return $this->_portingWebhookConfigurationsDelete;
125125
}
126126

127-
protected function getPortingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchList
128-
{
129-
if (!$this->_portingWebhookConfigurationFetch) {
130-
$this->_portingWebhookConfigurationFetch = new PortingWebhookConfigurationFetchList($this);
131-
}
132-
return $this->_portingWebhookConfigurationFetch;
133-
}
134-
135127
protected function getSigningRequestConfigurations(): SigningRequestConfigurationList
136128
{
137129
if (!$this->_signingRequestConfigurations) {
@@ -140,6 +132,14 @@ protected function getSigningRequestConfigurations(): SigningRequestConfiguratio
140132
return $this->_signingRequestConfigurations;
141133
}
142134

135+
protected function getWebhook(): WebhookList
136+
{
137+
if (!$this->_webhook) {
138+
$this->_webhook = new WebhookList($this);
139+
}
140+
return $this->_webhook;
141+
}
142+
143143
/**
144144
* Magic getter to lazy load root resources
145145
*
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
* @property \DateTime|null $portInTargetDateCreated
3333
* @property \DateTime|null $portOutTargetDateCreated
3434
*/
35-
class PortingWebhookConfigurationFetchInstance extends InstanceResource
35+
class WebhookInstance extends InstanceResource
3636
{
3737
/**
38-
* Initialize the PortingWebhookConfigurationFetchInstance
38+
* Initialize the WebhookInstance
3939
*
4040
* @param Version $version Version that contains the resource
4141
* @param mixed[] $payload The response payload
@@ -85,7 +85,7 @@ public function __get(string $name)
8585
*/
8686
public function __toString(): string
8787
{
88-
return '[Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance]';
88+
return '[Twilio.Numbers.V1.WebhookInstance]';
8989
}
9090
}
9191

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
use Twilio\Version;
2323

2424

25-
class PortingWebhookConfigurationFetchList extends ListResource
25+
class WebhookList extends ListResource
2626
{
2727
/**
28-
* Construct the PortingWebhookConfigurationFetchList
28+
* Construct the WebhookList
2929
*
3030
* @param Version $version Version that contains the resource
3131
*/
@@ -42,18 +42,18 @@ public function __construct(
4242
}
4343

4444
/**
45-
* Fetch the PortingWebhookConfigurationFetchInstance
45+
* Fetch the WebhookInstance
4646
*
47-
* @return PortingWebhookConfigurationFetchInstance Fetched PortingWebhookConfigurationFetchInstance
47+
* @return WebhookInstance Fetched WebhookInstance
4848
* @throws TwilioException When an HTTP error occurs.
4949
*/
50-
public function fetch(): PortingWebhookConfigurationFetchInstance
50+
public function fetch(): WebhookInstance
5151
{
5252

5353
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
5454
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
5555

56-
return new PortingWebhookConfigurationFetchInstance(
56+
return new WebhookInstance(
5757
$this->version,
5858
$payload
5959
);
@@ -67,6 +67,6 @@ public function fetch(): PortingWebhookConfigurationFetchInstance
6767
*/
6868
public function __toString(): string
6969
{
70-
return '[Twilio.Numbers.V1.PortingWebhookConfigurationFetchList]';
70+
return '[Twilio.Numbers.V1.WebhookList]';
7171
}
7272
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Twilio\Page;
2020
use Twilio\Version;
2121

22-
class PortingWebhookConfigurationFetchPage extends Page
22+
class WebhookPage extends Page
2323
{
2424
/**
2525
* @param Version $version Version that contains the resource
@@ -36,11 +36,11 @@ public function __construct(Version $version, Response $response, array $solutio
3636

3737
/**
3838
* @param array $payload Payload response from the API
39-
* @return PortingWebhookConfigurationFetchInstance \Twilio\Rest\Numbers\V1\PortingWebhookConfigurationFetchInstance
39+
* @return WebhookInstance \Twilio\Rest\Numbers\V1\WebhookInstance
4040
*/
41-
public function buildInstance(array $payload): PortingWebhookConfigurationFetchInstance
41+
public function buildInstance(array $payload): WebhookInstance
4242
{
43-
return new PortingWebhookConfigurationFetchInstance($this->version, $payload);
43+
return new WebhookInstance($this->version, $payload);
4444
}
4545

4646
/**
@@ -50,6 +50,6 @@ public function buildInstance(array $payload): PortingWebhookConfigurationFetchI
5050
*/
5151
public function __toString(): string
5252
{
53-
return '[Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage]';
53+
return '[Twilio.Numbers.V1.WebhookPage]';
5454
}
5555
}

0 commit comments

Comments
 (0)