-
public final class WebhookNewEmailPayloadNEW_EMAIL webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to. Use the email ID to fetch the full email body or attachments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWebhookNewEmailPayload.EventNameName of the event type webhook is being triggered for. Values: eMAILRECEIVED,nEWEMAIL,nEWCONTACT,nEWATTACHMENT,eMAILOPENED,eMAILREAD
-
Field Summary
Fields Modifier and Type Field Description private final List<AttachmentMetaData>attachmentMetaDatasprivate final List<String>bccprivate final List<String>ccprivate final OffsetDateTimecreatedAtprivate final UUIDemailIdprivate final WebhookNewEmailPayload.EventNameeventNameprivate final Stringfromprivate final UUIDinboxIdprivate final StringmessageIdprivate final Stringsubjectprivate final List<String>toprivate final UUIDwebhookIdprivate final StringwebhookName
-
Constructor Summary
Constructors Constructor Description WebhookNewEmailPayload(List<AttachmentMetaData> attachmentMetaDatas, List<String> bcc, List<String> cc, OffsetDateTime createdAt, UUID emailId, WebhookNewEmailPayload.EventName eventName, String from, UUID inboxId, String messageId, String subject, List<String> to, UUID webhookId, String webhookName)
-
Method Summary
Modifier and Type Method Description final List<AttachmentMetaData>getAttachmentMetaDatas()final List<String>getBcc()final List<String>getCc()final OffsetDateTimegetCreatedAt()final UUIDgetEmailId()final WebhookNewEmailPayload.EventNamegetEventName()final StringgetFrom()final UUIDgetInboxId()final StringgetMessageId()final StringgetSubject()final List<String>getTo()final UUIDgetWebhookId()final StringgetWebhookName()-
-
Constructor Detail
-
WebhookNewEmailPayload
WebhookNewEmailPayload(List<AttachmentMetaData> attachmentMetaDatas, List<String> bcc, List<String> cc, OffsetDateTime createdAt, UUID emailId, WebhookNewEmailPayload.EventName eventName, String from, UUID inboxId, String messageId, String subject, List<String> to, UUID webhookId, String webhookName)
- Parameters:
attachmentMetaDatas- List of attachment meta data objects if attachments presentbcc- List ofBCCrecipients email addresses that the email was addressed to.cc- List ofCCrecipients email addresses that the email was addressed to.createdAt- Date time of event creationemailId- ID of the email that was received.eventName- Name of the event type webhook is being triggered for.from- Who the email was sent from.inboxId- Id of the inbox that received an emailmessageId- Idempotent message ID.subject- The subject line of the email message as specified by SMTP subject headerto- List ofTorecipient email addresses that the email was addressed to.webhookId- ID of webhook entity being triggeredwebhookName- Name of the webhook being triggered
-
-
Method Detail
-
getAttachmentMetaDatas
final List<AttachmentMetaData> getAttachmentMetaDatas()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getEmailId
final UUID getEmailId()
-
getEventName
final WebhookNewEmailPayload.EventName getEventName()
-
getInboxId
final UUID getInboxId()
-
getMessageId
final String getMessageId()
-
getSubject
final String getSubject()
-
getWebhookId
final UUID getWebhookId()
-
getWebhookName
final String getWebhookName()
-
-
-
-