3namespace Bitrix\MessageService\Providers\Edna\WhatsApp\Old;
6use Bitrix\MessageService\Providers\Constants\InternalOption;
7use Bitrix\MessageService\Providers\Edna\WhatsApp;
8use Bitrix\MessageService\Providers\Edna\WhatsApp\ExternalSender;
9use Bitrix\MessageService\Providers\OptionManager;
19 $this->optionManager->getOption(InternalOption::API_KEY),
30 if (defined(
'WA_EDNA_RU_TEMPLATES_STUB') && WA_EDNA_RU_TEMPLATES_STUB ===
true)
35 $params = [
'imType' =>
'whatsapp'];
43 $this->optionManager->getOption(InternalOption::API_KEY),
48 if ($templatesRequestResult->isSuccess())
50 $templates = $templatesRequestResult->getData();
53 if ($checkErrors->isSuccess())
60 $result->addErrors($checkErrors->getErrors());
65 $result->addErrors($templatesRequestResult->getErrors());
83 'name' =>
'test template',
84 'imType' =>
'whatsapp',
88 'text' =>
'whatsapp text',
90 'text' =>
'footer text'
97 'payload' =>
'button1',
98 'buttonType' =>
'QUICK_REPLY'
104 'category' =>
'ISSUE_UPDATE',
105 'status' =>
'PENDING',
106 'createdAt' =>
'2020-11-12T11:31:39.000+0000',
107 'updatedAt' =>
'2020-11-12T11:31:39.000+0000'
111 'name' =>
'one more template',
112 'imType' =>
'whatsapp',
116 'text' =>
'one more template',
118 'text' =>
'footer text'
125 'payload' =>
'button1',
126 'buttonType' =>
'QUICK_REPLY'
132 'category' =>
'ISSUE_UPDATE',
133 'status' =>
'PENDING',
134 'createdAt' =>
'2020-11-12T11:31:39.000+0000',
135 'updatedAt' =>
'2020-11-12T11:31:39.000+0000'
Providers ExternalSender $externalSender
getMessageTemplatesStub()
getMessageTemplates(string $subject='')
checkForErrors(array $templates)
removeUnsupportedTemplates(array $templates)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']