File tree 4 files changed +47
-3
lines changed
src/main/java/com/mailgun/model/events
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`:
76
76
<dependency >
77
77
<groupId >com.mailgun</groupId >
78
78
<artifactId >mailgun-java</artifactId >
79
- <version >1.0.2 </version >
79
+ <version >1.0.3 </version >
80
80
</dependency >
81
81
...
82
82
</dependencies >
Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.mailgun</groupId >
8
8
<artifactId >mailgun-java</artifactId >
9
- <version >1.0.3-SNAPSHOT </version >
9
+ <version >1.0.3</version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >${project.groupId} :${project.artifactId} </name >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public class EventMessage {
33
33
* Message attachments..
34
34
* </p>
35
35
*/
36
- List <String > attachments ;
36
+ List <EventMessageAttachment > attachments ;
37
37
38
38
/**
39
39
* <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