Package com.vonage.client.verify2
Class WhatsappCodelessWorkflow
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.verify2.Workflow
com.vonage.client.verify2.WhatsappCodelessWorkflow
- All Implemented Interfaces:
Jsonable
Defines properties for sending a verification code to a user over WhatsApp
using an interaction prompt, where the user selects "Yes" or "No" to verify. See the
WhatsApp Interactive guide for an overview of how this works.
You must have a WhatsApp Business Account configured to use the from field, which
is now a requirement for WhatsApp workflows.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.This no longer works and will be removed in a future release.WhatsappCodelessWorkflow(String to, String from) Constructs a new WhatsApp interactive verification workflow. -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()The number to send the verification request from.protected StringvalidateFrom(String from) protected StringvalidateTo(String to) Methods inherited from class com.vonage.client.verify2.Workflow
getChannel, getToMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
WhatsappCodelessWorkflow
Deprecated.This no longer works and will be removed in a future release.Constructs a new WhatsApp interactive verification workflow.- Parameters:
to- The number to send the verification prompt to, in E.164 format.
-
WhatsappCodelessWorkflow
Constructs a new WhatsApp interactive verification workflow.- Parameters:
to- The number to send the verification prompt to, in E.164 format.from- The WhatsApp Business Account number to send the message from, in E.164 format.- Since:
- 8.3.0
-
-
Method Details
-
validateFrom
- Overrides:
validateFromin classWorkflow
-
getFrom
The number to send the verification request from.- Returns:
- The sender WABA number in E.164 format.
-
validateTo
- Overrides:
validateToin classWorkflow
-