com.sparkpost.model.webhook.event.RelayInjectionEvent Maven / Gradle / Ivy
package com.sparkpost.model.webhook.event;
import com.google.gson.annotations.SerializedName;
import com.yepher.jsondoc.annotations.Description;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* Relayed message is received by or injected into SparkPost.
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class RelayInjectionEvent extends AbstractWebhookEvent {
@SerializedName("msg_from")
@Description(value = "Sender address used on this message's SMTP envelope", sample = "[email protected]")
private String msgFrom;
@SerializedName("event_id")
@Description(value = "Unique event identifier", sample = "92356927693813856")
private String eventId;
@SerializedName("rcpt_to")
@Description(value = "Lowercase version of recipient address used on this message's SMTP envelope", sample = "[email protected]")
private String rcptTo;
@SerializedName("routing_domain")
@Description(value = "Domain receiving this message", sample = "example.com")
private String routingDomain;
@SerializedName("sending_ip")
@Description(value = "IP address through which this message was sent", sample = "127.0.0.1")
private String sendingIp;
@SerializedName("ip_pool")
@Description(value = "IP pool through which this message was sent", sample = "Example-Ip-Pool")
private String ipPool;
@SerializedName("subaccount_id")
@Description(value = "Unique subaccount identifier.", sample = "101")
private String subaccountId;
@Description(value = "Type of event this record describes", sample = "relay_injection")
private String type;
@SerializedName("customer_id")
@Description(value = "SparkPost-customer identifier through which this message was sent", sample = "1")
private String customerId;
@SerializedName("raw_rcpt_to")
@Description(value = "Actual recipient address used on this message's SMTP envelope", sample = "[email protected]")
private String rawRcptTo;
@SerializedName("msg_size")
@Description(value = "Message's size in bytes", sample = "1337")
private String msgSize;
@Description(value = "Event date and time, in Unix timestamp format (integer seconds since 00:00:00 GMT 1970-01-01)", sample = "1454442600")
private String timestamp;
}