Package com.vonage.client.verify2
Class WhatsappWorkflow
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.verify2.Workflow
com.vonage.client.verify2.WhatsappWorkflow
- All Implemented Interfaces:
Jsonable
Defines properties for sending a verification code to a user over a WhatsApp message.
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.WhatsappWorkflow(String to, String from) Constructs a new WhatsApp verification workflow with a custom sender number. -
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
-
WhatsappWorkflow
Deprecated.This no longer works and will be removed in a future release.Constructs a new WhatsApp verification workflow.- Parameters:
to- The number to send the message to, in E.164 format.
-
WhatsappWorkflow
Constructs a new WhatsApp verification workflow with a custom sender number.- Parameters:
to- The number to send the message to, in E.164 format.from- The WhatsApp Business Account number to send the message from, in E.164 format.
-
-
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
-