@@ -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-
233161class 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 ;
0 commit comments