Notifications
Table of Contents
Methods
- addToLine() : Result
- addUserConsentAgreementTerms() : bool
- canUse() : bool
- enableVirtualWhatsapp() : mixed
- Temporary method to enable and connect Virtual WhatsApp by request.
- getAgreementTerms() : array<string|int, mixed>
- getVirtualWhatsappLink() : mixed
- getVirtualWhatsappOnClick() : string
- getWidgetDisclaimerUrl() : mixed
- getWidgetLocalization() : mixed
- getWidgetScript() : string
- isEnabled() : bool
- isUserConsentAgreementTerms() : bool
Methods
addToLine()
public
static addToLine(int $lineId, string $scenarioCode) : Result
Parameters
- $lineId : int
- $scenarioCode : string
Return values
ResultaddUserConsentAgreementTerms()
public
addUserConsentAgreementTerms() : bool
Return values
boolcanUse()
public
canUse() : bool
Return values
boolenableVirtualWhatsapp()
Temporary method to enable and connect Virtual WhatsApp by request.
public
static enableVirtualWhatsapp() : mixed
Should be called by request from controller. Delete after 2022-01-01
getAgreementTerms()
public
getAgreementTerms() : array<string|int, mixed>
Return values
array<string|int, mixed>getVirtualWhatsappLink()
public
static getVirtualWhatsappLink(string $portalCode[, mixed $langId = LANGUAGE_ID ]) : mixed
Parameters
- $portalCode : string
- $langId : mixed = LANGUAGE_ID
getVirtualWhatsappOnClick()
public
static getVirtualWhatsappOnClick(string $url) : string
Parameters
- $url : string
Return values
stringgetWidgetDisclaimerUrl()
public
static getWidgetDisclaimerUrl([mixed $langId = LANGUAGE_ID ]) : mixed
Parameters
- $langId : mixed = LANGUAGE_ID
getWidgetLocalization()
public
static getWidgetLocalization([mixed $langId = LANGUAGE_ID ]) : mixed
Parameters
- $langId : mixed = LANGUAGE_ID
getWidgetScript()
public
static getWidgetScript() : string
Return values
stringisEnabled()
public
isEnabled() : bool
Return values
boolisUserConsentAgreementTerms()
public
isUserConsentAgreementTerms() : bool