Skip to content

Commit 6aa24d8

Browse files
authored
Merge pull request #702 from PierreBtz/pbeitz/gh-691
[feature] Add support for the Talk Partner Edition type comment
2 parents 3f635cd + 81e40c1 commit 6aa24d8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
@JsonTypeInfo(use = NAME, include = EXTERNAL_PROPERTY, property = "type", visible = true)
2020
@JsonSubTypes({
2121
@JsonSubTypes.Type(value = Comment.class, name = "Comment"),
22-
@JsonSubTypes.Type(value = VoiceComment.class, name = "VoiceComment")
22+
@JsonSubTypes.Type(value = VoiceComment.class, name = "VoiceComment"),
23+
@JsonSubTypes.Type(value = VoiceComment.class, name = "TpeVoiceComment")
2324
})
2425
public class Comment implements Serializable {
2526

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
/** https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/ */
44
public enum CommentType {
55
COMMENT("Comment"),
6-
VOICE_COMMENT("VoiceComment");
6+
VOICE_COMMENT("VoiceComment"),
7+
// Talk Partner Edition
8+
TPE_VOICE_COMMENT("TpeVoiceComment");
79

810
private final String name;
911

0 commit comments

Comments
 (0)