Skip to content

Commit 7700928

Browse files
authored
Merge pull request #392 from internetstaff/more_ticket_form_fields
Add end_user_conditions to ticket form
2 parents 76239d5 + ba91e07 commit 7700928

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class TicketForm implements SearchResultEntity, Serializable {
3232
private Date createdAt;
3333
@JsonProperty("updated_at")
3434
private Date updatedAt;
35+
@JsonProperty("end_user_conditions")
36+
private List<EndUserCondition> endUserConditions;
3537

3638
public String getName() {
3739
return name;
@@ -105,4 +107,67 @@ public Long getId() {
105107
public void setId(Long id) {
106108
this.id = id;
107109
}
110+
111+
public List<EndUserCondition> getEndUserConditions() {
112+
return endUserConditions;
113+
}
114+
115+
public void setEndUserConditions(List<EndUserCondition> endUserConditions) {
116+
this.endUserConditions = endUserConditions;
117+
}
118+
119+
public static class EndUserCondition implements Serializable {
120+
private static final long serialVersionUID = 1L;
121+
@JsonProperty("parent_field_id")
122+
private String parentFieldId;
123+
private String value;
124+
@JsonProperty("child_fields")
125+
private List<ChildField> childFields;
126+
127+
public String getParentFieldId() {
128+
return parentFieldId;
129+
}
130+
131+
public void setParentFieldId(String parentFieldId) {
132+
this.parentFieldId = parentFieldId;
133+
}
134+
135+
public String getValue() {
136+
return value;
137+
}
138+
139+
public void setValue(String value) {
140+
this.value = value;
141+
}
142+
143+
public List<ChildField> getChildFields() {
144+
return childFields;
145+
}
146+
147+
public void setChildFields(List<ChildField> childFields) {
148+
this.childFields = childFields;
149+
}
150+
}
151+
152+
public static class ChildField implements Serializable {
153+
private static final long serialVersionUID = 1L;
154+
private String id;
155+
private boolean isRequired;
156+
157+
public String getId() {
158+
return id;
159+
}
160+
161+
public void setId(String id) {
162+
this.id = id;
163+
}
164+
165+
public boolean isRequired() {
166+
return isRequired;
167+
}
168+
169+
public void setRequired(boolean required) {
170+
isRequired = required;
171+
}
172+
}
108173
}

0 commit comments

Comments
 (0)