File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
main/java/org/zendesk/client/v2/model
test/java/org/zendesk/client/v2/model Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class Request implements Serializable {
19
19
protected String subject ;
20
20
protected String description ;
21
21
protected Status status ;
22
+ protected Long customStatusId ;
22
23
protected Ticket .Requester requester ;
23
24
protected Long requesterId ;
24
25
protected Long organizationId ;
@@ -87,6 +88,15 @@ public void setStatus(Status status) {
87
88
this .status = status ;
88
89
}
89
90
91
+ @ JsonProperty ("custom_status_id" )
92
+ public Long getCustomStatusId () {
93
+ return customStatusId ;
94
+ }
95
+
96
+ public void setCustomStatusId (Long customStatusId ) {
97
+ this .customStatusId = customStatusId ;
98
+ }
99
+
90
100
public String getSubject () {
91
101
return subject ;
92
102
}
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ private TicketResult parseJson(byte[] json) {
20
20
21
21
@ Test
22
22
public void testParseTicketResult () {
23
- String json = "{ \" ticket\" : { \" id\" : 21337631753}}" ;
23
+ String json = "{ \" ticket\" : { \" id\" : 21337631753, \" custom_status_id \" : 9999 }}" ;
24
24
TicketResult ev = parseJson (json .getBytes ());
25
25
assertNotNull (ev );
26
+ assertEquals (Long .valueOf (9999 ), ev .getTicket ().getCustomStatusId ());
26
27
assertEquals (TicketResult .class , ev .getClass ());
27
28
}
28
29
}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ private Ticket createSampleTicket() {
49
49
ticket .setId (Math .abs (RANDOM .nextLong ()));
50
50
ticket .setComment (new Comment (TICKET_COMMENT1 ));
51
51
ticket .setUpdatedAt (NOW );
52
+ ticket .setCustomStatusId (Math .abs (RANDOM .nextLong ()));
52
53
return ticket ;
53
54
}
54
55
}
You can’t perform that action at this time.
0 commit comments