Package com.whatsapp.api.domain.webhook
Record Class Value
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Value
- Record Components:
metadata
- The metadata about your phone number.messagingProduct
- The messaging service used for Webhooks. For WhatsApp messages, this value needs to be set to “whatsapp”.messages
- An array of message objects. Added to Webhooks for incoming message notifications.contacts
- An array of contactsstatuses
- An array of message status objects. Added to Webhooks for message status update.decision
- Used if a decision about accounts or phone numbers has been made. (APPROVED or REJECTED)displayPhoneNumber
- Includes the display phone number of the business account that triggered the notification.event
- Used when an event happened in a specific WABA. SeeEventType
messageTemplateId
- The message template IDmessageTemplateLanguage
- The message template languagemessageTemplateName
- The message template namephoneNumber
- the phone numberreason
- reasonrejectionReason
- If a request was rejected, this field displays the reason for that rejection.requestedVerifiedName
- This field displays the name that was sent to be verified.
public record Value(Metadata metadata, String messagingProduct, List<Message> messages, List<Contact> contacts, List<Status> statuses, EventType event, String phoneNumber, String messageTemplateId, String messageTemplateName, String messageTemplateLanguage, String reason, String displayPhoneNumber, String decision, String requestedVerifiedName, Object rejectionReason, DisableInfo disableInfo, String currentLimit, BanInfo banInfo, List<RestrictionInfo> restrictionInfo)
extends Record
The type Value.
-
Constructor Summary
ConstructorDescriptionValue
(Metadata metadata, String messagingProduct, List<Message> messages, List<Contact> contacts, List<Status> statuses, EventType event, String phoneNumber, String messageTemplateId, String messageTemplateName, String messageTemplateLanguage, String reason, String displayPhoneNumber, String decision, String requestedVerifiedName, Object rejectionReason, DisableInfo disableInfo, String currentLimit, BanInfo banInfo, List<RestrictionInfo> restrictionInfo) Creates an instance of aValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionbanInfo()
Returns the value of thebanInfo
record component.contacts()
Returns the value of thecontacts
record component.Returns the value of thecurrentLimit
record component.decision()
Returns the value of thedecision
record component.Returns the value of thedisableInfo
record component.Returns the value of thedisplayPhoneNumber
record component.final boolean
Indicates whether some other object is "equal to" this one.event()
Returns the value of theevent
record component.final int
hashCode()
Returns a hash code value for this object.messages()
Returns the value of themessages
record component.Returns the value of themessageTemplateId
record component.Returns the value of themessageTemplateLanguage
record component.Returns the value of themessageTemplateName
record component.Returns the value of themessagingProduct
record component.metadata()
Returns the value of themetadata
record component.Returns the value of thephoneNumber
record component.reason()
Returns the value of thereason
record component.Returns the value of therejectionReason
record component.Returns the value of therequestedVerifiedName
record component.Returns the value of therestrictionInfo
record component.statuses()
Returns the value of thestatuses
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Value
public Value(Metadata metadata, String messagingProduct, List<Message> messages, List<Contact> contacts, List<Status> statuses, EventType event, String phoneNumber, String messageTemplateId, String messageTemplateName, String messageTemplateLanguage, String reason, String displayPhoneNumber, String decision, String requestedVerifiedName, Object rejectionReason, DisableInfo disableInfo, String currentLimit, BanInfo banInfo, List<RestrictionInfo> restrictionInfo) Creates an instance of aValue
record class.- Parameters:
metadata
- the value for themetadata
record componentmessagingProduct
- the value for themessagingProduct
record componentmessages
- the value for themessages
record componentcontacts
- the value for thecontacts
record componentstatuses
- the value for thestatuses
record componentevent
- the value for theevent
record componentphoneNumber
- the value for thephoneNumber
record componentmessageTemplateId
- the value for themessageTemplateId
record componentmessageTemplateName
- the value for themessageTemplateName
record componentmessageTemplateLanguage
- the value for themessageTemplateLanguage
record componentreason
- the value for thereason
record componentdisplayPhoneNumber
- the value for thedisplayPhoneNumber
record componentdecision
- the value for thedecision
record componentrequestedVerifiedName
- the value for therequestedVerifiedName
record componentrejectionReason
- the value for therejectionReason
record componentdisableInfo
- the value for thedisableInfo
record componentcurrentLimit
- the value for thecurrentLimit
record componentbanInfo
- the value for thebanInfo
record componentrestrictionInfo
- the value for therestrictionInfo
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-
messagingProduct
Returns the value of themessagingProduct
record component.- Returns:
- the value of the
messagingProduct
record component
-
messages
Returns the value of themessages
record component.- Returns:
- the value of the
messages
record component
-
contacts
Returns the value of thecontacts
record component.- Returns:
- the value of the
contacts
record component
-
statuses
Returns the value of thestatuses
record component.- Returns:
- the value of the
statuses
record component
-
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-
phoneNumber
Returns the value of thephoneNumber
record component.- Returns:
- the value of the
phoneNumber
record component
-
messageTemplateId
Returns the value of themessageTemplateId
record component.- Returns:
- the value of the
messageTemplateId
record component
-
messageTemplateName
Returns the value of themessageTemplateName
record component.- Returns:
- the value of the
messageTemplateName
record component
-
messageTemplateLanguage
Returns the value of themessageTemplateLanguage
record component.- Returns:
- the value of the
messageTemplateLanguage
record component
-
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-
displayPhoneNumber
Returns the value of thedisplayPhoneNumber
record component.- Returns:
- the value of the
displayPhoneNumber
record component
-
decision
Returns the value of thedecision
record component.- Returns:
- the value of the
decision
record component
-
requestedVerifiedName
Returns the value of therequestedVerifiedName
record component.- Returns:
- the value of the
requestedVerifiedName
record component
-
rejectionReason
Returns the value of therejectionReason
record component.- Returns:
- the value of the
rejectionReason
record component
-
disableInfo
Returns the value of thedisableInfo
record component.- Returns:
- the value of the
disableInfo
record component
-
currentLimit
Returns the value of thecurrentLimit
record component.- Returns:
- the value of the
currentLimit
record component
-
banInfo
Returns the value of thebanInfo
record component.- Returns:
- the value of the
banInfo
record component
-
restrictionInfo
Returns the value of therestrictionInfo
record component.- Returns:
- the value of the
restrictionInfo
record component
-