Skip to content

Commit d4bb1b9

Browse files
committed
Release 1.0.3
1 parent a8b1ee8 commit d4bb1b9

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff 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>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

src/main/java/com/mailgun/model/events/EventMessage.java

+1-1
Original file line numberDiff line numberDiff 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 numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
}

0 commit comments

Comments
 (0)