Skip to content

Commit 5f94617

Browse files
committed
Add proper json mapping for Trigger
1 parent b6b42f0 commit 5f94617

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/org/zendesk/client/v2/model/Trigger.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.zendesk.client.v2.model;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
35
import java.io.Serializable;
46
import java.util.ArrayList;
57
import java.util.Date;
@@ -32,6 +34,7 @@ public void setId(Long id) {
3234
this.id = id;
3335
}
3436

37+
@JsonProperty("category_id")
3538
public String getCategoryId() {
3639
return categoryId;
3740
}
@@ -56,6 +59,7 @@ public void setActive(boolean active) {
5659
this.active = active;
5760
}
5861

62+
@JsonProperty("created_at")
5963
public Date getCreatedAt() {
6064
return createdAt;
6165
}
@@ -88,6 +92,7 @@ public void setActions(List<Action> actions) {
8892
this.actions = actions;
8993
}
9094

95+
@JsonProperty("updated_at")
9196
public Date getUpdatedAt() {
9297
return updatedAt;
9398
}
@@ -105,8 +110,6 @@ public String toString() {
105110
+ categoryId
106111
+ ", title="
107112
+ title
108-
+ ", active="
109-
+ active
110113
+ ", position="
111114
+ position
112115
+ ", active="
@@ -115,6 +118,8 @@ public String toString() {
115118
+ conditions
116119
+ ", actions="
117120
+ actions
121+
+ ", createdAt="
122+
+ createdAt
118123
+ ", updatedAt="
119124
+ updatedAt
120125
+ '}';

0 commit comments

Comments
 (0)