You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/sparkpost-lib/src/main/java/com/sparkpost/model/webhook/event/BounceEvent.java
+37-2Lines changed: 37 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
importjava.util.List;
4
4
importjava.util.Map;
5
5
6
+
importcom.google.gson.annotations.SerializedName;
7
+
importcom.sparkpost.model.Base;
6
8
importcom.yepher.jsondoc.annotations.Description;
7
9
8
10
importlombok.Data;
@@ -14,24 +16,27 @@
14
16
*/
15
17
16
18
@Data
17
-
@EqualsAndHashCode()
18
-
publicclassBounceEvent {
19
+
@EqualsAndHashCode(callSuper = true)
20
+
publicclassBounceEventextendsBase{
19
21
20
22
@Description(
21
23
value = "Canonicalized text of the response returned by the remote server due to a failed delivery attempt",
22
24
sample = "MAIL REFUSED - IP (a.b.c.d) is in black list")
23
25
privateStringreason;
24
26
27
+
@SerializedName("sms_src_npi")
25
28
@Description(
26
29
value = "Source numbering plan identification",
27
30
sample = "E164")
28
31
privateStringsmsSrcNpi;
29
32
33
+
@SerializedName("template_version")
30
34
@Description(
31
35
value = "Version of the template used to construct this message",
32
36
sample = "1")
33
37
privateStringtemplateVersion;
34
38
39
+
@SerializedName("friendly_from")
35
40
@Description(
36
41
value = "Friendly sender or \"From\" header in the original email",
37
42
sample = "sender@example.com")
@@ -42,11 +47,13 @@ public class BounceEvent {
42
47
sample = "Summer deals are here!")
43
48
privateStringsubject;
44
49
50
+
@SerializedName("ip_pool")
45
51
@Description(
46
52
value = "IP pool through which this message was sent",
47
53
sample = "Example-Ip-Pool")
48
54
privateStringipPool;
49
55
56
+
@SerializedName("rcpt_tags")
50
57
@Description(
51
58
value = "Tags applied to the message which generated this event",
52
59
sample = "[\"male\",\"US\"]")
@@ -57,51 +64,61 @@ public class BounceEvent {
57
64
sample = "bounce")
58
65
privateStringtype;
59
66
67
+
@SerializedName("num_retries")
60
68
@Description(
61
69
value = "Number of failed attempts before this message was successfully delivered; when the first attempt succeeds, zero",
62
70
sample = "2")
63
71
privateStringnumRetries;
64
72
73
+
@SerializedName("sms_dst_npi")
65
74
@Description(
66
75
value = "Destination numbering plan identification",
67
76
sample = "E164")
68
77
privateStringsmsDstNpi;
69
78
79
+
@SerializedName("bounce_class")
70
80
@Description(
71
81
value = "Classification code for a given message (see [Bounce Classification Codes](https://support.sparkpost.com/customer/portal/articles/1929896))",
72
82
sample = "1")
73
83
privateStringbounceClass;
74
84
85
+
@SerializedName("raw_rcpt_to")
75
86
@Description(
76
87
value = "Actual recipient address used on this message's SMTP envelope",
77
88
sample = "Recipient@example.com")
78
89
privateStringrawRcptTo;
79
90
91
+
@SerializedName("sms_src")
80
92
@Description(
81
93
value = "SMS source address",
82
94
sample = "1234")
83
95
privateStringsmsSrc;
84
96
97
+
@SerializedName("msg_from")
85
98
@Description(
86
99
value = "Sender address used on this message's SMTP envelope",
87
100
sample = "sender@example.com")
88
101
privateStringmsgFrom;
89
102
103
+
@SerializedName("rcpt_to")
90
104
@Description(
91
105
value = "Lowercase version of recipient address used on this message's SMTP envelope",
92
106
sample = "recipient@example.com")
93
107
privateStringrcptTo;
94
108
109
+
@SerializedName("subaccount_id")
95
110
@Description(
96
111
value = "Unique subaccount identifier.",
97
112
sample = "101")
98
113
privateStringsubaccountId;
99
114
115
+
@SerializedName("transmission_id")
100
116
@Description(
101
117
value = "Transmission which originated this message",
102
118
sample = "65832150921904138")
103
119
privateStringtransmissionId;
104
120
121
+
@SerializedName("campaign_id")
105
122
@Description(
106
123
value = "Campaign of which this message was a part",
107
124
sample = "Example Campaign Name")
@@ -112,91 +129,109 @@ public class BounceEvent {
112
129
sample = "1454442600")
113
130
privateStringtimestamp;
114
131
132
+
@SerializedName("sms_coding")
115
133
@Description(
116
134
value = "Data encoding used in the SMS message",
117
135
sample = "ASCII")
118
136
privateStringsmsCoding;
119
137
138
+
@SerializedName("rcpt_meta")
120
139
@Description(
121
140
value = "Metadata describing the message recipient",
122
141
sample = "{\"customKey\":\"customValue\"}")
123
142
privateMap<String, String> rcptMeta;
124
143
144
+
@SerializedName("message_id")
125
145
@Description(
126
146
value = "SparkPost-cluster-wide unique identifier for this message",
127
147
sample = "000443ee14578172be22")
128
148
privateStringmessageId;
129
149
150
+
@SerializedName("ip_address")
130
151
@Description(
131
152
value = "IP address of the host to which SparkPost delivered this message; in engagement events, the IP address of the host where the HTTP request originated",
132
153
sample = "127.0.0.1")
133
154
privateStringipAddress;
134
155
156
+
@SerializedName("rcpt_type")
135
157
@Description(
136
158
value = "Indicates that a recipient address appeared in the Cc or Bcc header or the archive JSON array",
137
159
sample = "cc")
138
160
privateStringrcptType;
139
161
162
+
@SerializedName("sms_dst")
140
163
@Description(
141
164
value = "SMS destination address",
142
165
sample = "7876712656")
143
166
privateStringsmsDst;
144
167
168
+
@SerializedName("event_id")
145
169
@Description(
146
170
value = "Unique event identifier",
147
171
sample = "92356927693813856")
148
172
privateStringeventId;
149
173
174
+
@SerializedName("routing_domain")
150
175
@Description(
151
176
value = "Domain receiving this message",
152
177
sample = "example.com")
153
178
privateStringroutingDomain;
154
179
180
+
@SerializedName("sending_ip")
155
181
@Description(
156
182
value = "IP address through which this message was sent",
157
183
sample = "127.0.0.1")
158
184
privateStringsendingIp;
159
185
186
+
@SerializedName("sms_src_ton")
160
187
@Description(
161
188
value = "Type of number for the source address",
162
189
sample = "Unknown")
163
190
privateStringsmsSrcTon;
164
191
192
+
@SerializedName("device_token")
165
193
@Description(
166
194
value = "Token of the device / application targeted by this PUSH notification message. Applies only when delv_method is gcm or apn.",
0 commit comments