/AWS1/CL_PPMLIBRARYTMPLBUTTO01¶
Defines a button in a template from Meta's library.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_type TYPE /AWS1/PPMBUTTONTYPE /AWS1/PPMBUTTONTYPE¶
The type of button (for example, QUICK_REPLY, CALL, or URL).
iv_text TYPE /AWS1/PPMMETATEXT /AWS1/PPMMETATEXT¶
The text displayed on the button (maximum 40 characters).
iv_phonenumber TYPE /AWS1/PPMPHONENUMBER /AWS1/PPMPHONENUMBER¶
The phone number in E.164 format for CALL-type buttons.
iv_url TYPE /AWS1/PPMMETAURL /AWS1/PPMMETAURL¶
The URL for URL-type buttons.
iv_otptype TYPE /AWS1/PPMOTPTYPE /AWS1/PPMOTPTYPE¶
The type of one-time password for OTP buttons.
iv_zerotaptermsaccepted TYPE /AWS1/PPMZEROTAPTERMSACCEPTED /AWS1/PPMZEROTAPTERMSACCEPTED¶
When true, indicates acceptance of zero-tap terms for the button.
it_supportedapps TYPE /AWS1/CL_PPMSUPPORTEDAPP_W=>TT_SUPPORTEDAPPS TT_SUPPORTEDAPPS¶
List of supported applications for this button type.
Queryable Attributes¶
type¶
The type of button (for example, QUICK_REPLY, CALL, or URL).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TYPE() |
Getter for TYPE, with configurable default |
ASK_TYPE() |
Getter for TYPE w/ exceptions if field has no value |
HAS_TYPE() |
Determine if TYPE has a value |
text¶
The text displayed on the button (maximum 40 characters).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TEXT() |
Getter for TEXT, with configurable default |
ASK_TEXT() |
Getter for TEXT w/ exceptions if field has no value |
HAS_TEXT() |
Determine if TEXT has a value |
phoneNumber¶
The phone number in E.164 format for CALL-type buttons.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PHONENUMBER() |
Getter for PHONENUMBER, with configurable default |
ASK_PHONENUMBER() |
Getter for PHONENUMBER w/ exceptions if field has no value |
HAS_PHONENUMBER() |
Determine if PHONENUMBER has a value |
url¶
The URL for URL-type buttons.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_URL() |
Getter for URL, with configurable default |
ASK_URL() |
Getter for URL w/ exceptions if field has no value |
HAS_URL() |
Determine if URL has a value |
otpType¶
The type of one-time password for OTP buttons.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_OTPTYPE() |
Getter for OTPTYPE, with configurable default |
ASK_OTPTYPE() |
Getter for OTPTYPE w/ exceptions if field has no value |
HAS_OTPTYPE() |
Determine if OTPTYPE has a value |
zeroTapTermsAccepted¶
When true, indicates acceptance of zero-tap terms for the button.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ZEROTAPTERMSACCEPTED() |
Getter for ZEROTAPTERMSACCEPTED, with configurable default |
ASK_ZEROTAPTERMSACCEPTED() |
Getter for ZEROTAPTERMSACCEPTED w/ exceptions if field has n |
HAS_ZEROTAPTERMSACCEPTED() |
Determine if ZEROTAPTERMSACCEPTED has a value |
supportedApps¶
List of supported applications for this button type.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SUPPORTEDAPPS() |
Getter for SUPPORTEDAPPS, with configurable default |
ASK_SUPPORTEDAPPS() |
Getter for SUPPORTEDAPPS w/ exceptions if field has no value |
HAS_SUPPORTEDAPPS() |
Determine if SUPPORTEDAPPS has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_METALIBRARYTMPLBUTTONLIST¶
TYPES TT_METALIBRARYTMPLBUTTONLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_PPMLIBRARYTMPLBUTTO01 WITH DEFAULT KEY
.