Skip to content

Commit 671385c

Browse files
committed
[Librarian] Regenerated @ 84b4cd4c23a96109c715a2512bbe8238fae5c394 4f23177c4c946a9a5cdaf592718766a9b4816075
1 parent dd9eb19 commit 671385c

File tree

650 files changed

+2236
-1157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

650 files changed

+2236
-1157
lines changed

CHANGES.md

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

4+
[2024-06-18] Version 8.2.0
5+
--------------------------
6+
**Library - Chore**
7+
- [PR #809](https://github.com/twilio/twilio-php/pull/809): adding support for put. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Events**
10+
- Add `status` and `documentation_url` to Event Types
11+
12+
**Lookups**
13+
- Removed unused `fraud` lookups in V1 only to facilitate rest proxy migration
14+
15+
**Numbers**
16+
- Add date_created field to the Get Port In Request API
17+
- Rename the `status_last_time_updated_timestamp` field to `last_updated` in the Get Port In Phone Number API **(breaking change)**
18+
- Add Rejection reason and rejection reason code to the Get Port In Phone Number API
19+
- Remove the carrier information from the Portability API
20+
21+
**Proxy**
22+
- Change property `type` from enum to ienum
23+
24+
**Trusthub**
25+
- Add skipMessagingUseCase field in compliance_tollfree_inquiry.
26+
27+
428
[2024-06-06] Version 8.1.1
529
--------------------------
630
**Api**

src/Twilio/Rest/Accounts/V1/AuthTokenPromotionContext.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
namespace Twilio\Rest\Accounts\V1;
1919

2020
use Twilio\Exceptions\TwilioException;
21+
use Twilio\Values;
2122
use Twilio\Version;
2223
use Twilio\InstanceContext;
2324

@@ -50,7 +51,8 @@ public function __construct(
5051
public function update(): AuthTokenPromotionInstance
5152
{
5253

53-
$payload = $this->version->update('POST', $this->uri, [], []);
54+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
55+
$payload = $this->version->update('POST', $this->uri, [], [], $headers);
5456

5557
return new AuthTokenPromotionInstance(
5658
$this->version,

src/Twilio/Rest/Accounts/V1/Credential/AwsContext.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public function __construct(
5757
public function delete(): bool
5858
{
5959

60-
return $this->version->delete('DELETE', $this->uri);
60+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
61+
return $this->version->delete('DELETE', $this->uri, [], [], $headers);
6162
}
6263

6364

@@ -70,7 +71,8 @@ public function delete(): bool
7071
public function fetch(): AwsInstance
7172
{
7273

73-
$payload = $this->version->fetch('GET', $this->uri, [], []);
74+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
75+
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
7476

7577
return new AwsInstance(
7678
$this->version,
@@ -97,7 +99,8 @@ public function update(array $options = []): AwsInstance
9799
$options['friendlyName'],
98100
]);
99101

100-
$payload = $this->version->update('POST', $this->uri, [], $data);
102+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
103+
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
101104

102105
return new AwsInstance(
103106
$this->version,

src/Twilio/Rest/Accounts/V1/Credential/AwsList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public function create(string $credentials, array $options = []): AwsInstance
6565
$options['accountSid'],
6666
]);
6767

68-
$payload = $this->version->create('POST', $this->uri, [], $data);
68+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
69+
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
6970

7071
return new AwsInstance(
7172
$this->version,

src/Twilio/Rest/Accounts/V1/Credential/PublicKeyContext.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public function __construct(
5757
public function delete(): bool
5858
{
5959

60-
return $this->version->delete('DELETE', $this->uri);
60+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
61+
return $this->version->delete('DELETE', $this->uri, [], [], $headers);
6162
}
6263

6364

@@ -70,7 +71,8 @@ public function delete(): bool
7071
public function fetch(): PublicKeyInstance
7172
{
7273

73-
$payload = $this->version->fetch('GET', $this->uri, [], []);
74+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
75+
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
7476

7577
return new PublicKeyInstance(
7678
$this->version,
@@ -97,7 +99,8 @@ public function update(array $options = []): PublicKeyInstance
9799
$options['friendlyName'],
98100
]);
99101

100-
$payload = $this->version->update('POST', $this->uri, [], $data);
102+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
103+
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
101104

102105
return new PublicKeyInstance(
103106
$this->version,

src/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public function create(string $publicKey, array $options = []): PublicKeyInstanc
6565
$options['accountSid'],
6666
]);
6767

68-
$payload = $this->version->create('POST', $this->uri, [], $data);
68+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
69+
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
6970

7071
return new PublicKeyInstance(
7172
$this->version,

src/Twilio/Rest/Accounts/V1/SafelistList.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public function create(string $phoneNumber): SafelistInstance
5757
$phoneNumber,
5858
]);
5959

60-
$payload = $this->version->create('POST', $this->uri, [], $data);
60+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
61+
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
6162

6263
return new SafelistInstance(
6364
$this->version,
@@ -83,7 +84,8 @@ public function delete(array $options = []): bool
8384
$options['phoneNumber'],
8485
]);
8586

86-
return $this->version->delete('DELETE', $this->uri, $params);
87+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
88+
return $this->version->delete('DELETE', $this->uri, $params, [], $headers);
8789
}
8890

8991

@@ -104,7 +106,8 @@ public function fetch(array $options = []): SafelistInstance
104106
$options['phoneNumber'],
105107
]);
106108

107-
$payload = $this->version->fetch('GET', $this->uri, $params, []);
109+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
110+
$payload = $this->version->fetch('GET', $this->uri, $params, [], $headers);
108111

109112
return new SafelistInstance(
110113
$this->version,

src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenContext.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
namespace Twilio\Rest\Accounts\V1;
1919

2020
use Twilio\Exceptions\TwilioException;
21+
use Twilio\Values;
2122
use Twilio\Version;
2223
use Twilio\InstanceContext;
2324

@@ -50,7 +51,8 @@ public function __construct(
5051
public function create(): SecondaryAuthTokenInstance
5152
{
5253

53-
$payload = $this->version->create('POST', $this->uri, [], []);
54+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
55+
$payload = $this->version->create('POST', $this->uri, [], [], $headers);
5456

5557
return new SecondaryAuthTokenInstance(
5658
$this->version,
@@ -68,7 +70,8 @@ public function create(): SecondaryAuthTokenInstance
6870
public function delete(): bool
6971
{
7072

71-
return $this->version->delete('DELETE', $this->uri);
73+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
74+
return $this->version->delete('DELETE', $this->uri, [], [], $headers);
7275
}
7376

7477

src/Twilio/Rest/Api/V2010/Account/AddressContext.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public function __construct(
7070
public function delete(): bool
7171
{
7272

73-
return $this->version->delete('DELETE', $this->uri);
73+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
74+
return $this->version->delete('DELETE', $this->uri, [], [], $headers);
7475
}
7576

7677

@@ -83,7 +84,8 @@ public function delete(): bool
8384
public function fetch(): AddressInstance
8485
{
8586

86-
$payload = $this->version->fetch('GET', $this->uri, [], []);
87+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
88+
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
8789

8890
return new AddressInstance(
8991
$this->version,
@@ -127,7 +129,8 @@ public function update(array $options = []): AddressInstance
127129
$options['streetSecondary'],
128130
]);
129131

130-
$payload = $this->version->update('POST', $this->uri, [], $data);
132+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
133+
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
131134

132135
return new AddressInstance(
133136
$this->version,

src/Twilio/Rest/Api/V2010/Account/AddressList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public function create(string $customerName, string $street, string $city, strin
9191
$options['streetSecondary'],
9292
]);
9393

94-
$payload = $this->version->create('POST', $this->uri, [], $data);
94+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
95+
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
9596

9697
return new AddressInstance(
9798
$this->version,

0 commit comments

Comments
 (0)