File tree Expand file tree Collapse file tree 4 files changed +47
-3
lines changed
src/main/java/com/mailgun/model/events Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ Add the following to your `pom.xml`:
7676 <dependency >
7777 <groupId >com.mailgun</groupId >
7878 <artifactId >mailgun-java</artifactId >
79- <version >1.0.2 </version >
79+ <version >1.0.3 </version >
8080 </dependency >
8181 ...
8282</dependencies >
Original file line number Diff line number Diff line change 66
77 <groupId >com.mailgun</groupId >
88 <artifactId >mailgun-java</artifactId >
9- <version >1.0.3-SNAPSHOT </version >
9+ <version >1.0.3</version >
1010 <packaging >jar</packaging >
1111
1212 <name >${project.groupId} :${project.artifactId} </name >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public class EventMessage {
3333 * Message attachments..
3434 * </p>
3535 */
36- List <String > attachments ;
36+ List <EventMessageAttachment > attachments ;
3737
3838 /**
3939 * <p>
Original file line number Diff line number Diff line change 1+ package com .mailgun .model .events ;
2+
3+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
4+ import com .fasterxml .jackson .annotation .JsonProperty ;
5+ import lombok .Builder ;
6+ import lombok .Value ;
7+ import lombok .extern .jackson .Jacksonized ;
8+
9+ /**
10+ * <p>
11+ * Event message info.
12+ * </p>
13+ *
14+ * @see <a href="https://documentation.mailgun.com/en/latest/api-events.html">Events API</a>
15+ */
16+ @ Value
17+ @ Jacksonized
18+ @ Builder
19+ @ JsonIgnoreProperties (ignoreUnknown = true )
20+ public class EventMessageAttachment {
21+
22+ /**
23+ * <p>
24+ * Attachment file name.
25+ * </p>
26+ */
27+ String filename ;
28+
29+ /**
30+ * <p>
31+ * Attachment content type.
32+ * </p>
33+ */
34+ @ JsonProperty ("content-type" )
35+ String contentType ;
36+
37+ /**
38+ * <p>
39+ * Attachment size.
40+ * </p>
41+ */
42+ Integer size ;
43+
44+ }
You can’t perform that action at this time.
0 commit comments