Skip to content

Commit

Permalink
Merge pull request #702 from PierreBtz/pbeitz/gh-691
Browse files Browse the repository at this point in the history
[feature] Add support for the Talk Partner Edition type comment
  • Loading branch information
PierreBtz authored Jun 28, 2024
2 parents 3f635cd + 81e40c1 commit 6aa24d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/zendesk/client/v2/model/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
@JsonTypeInfo(use = NAME, include = EXTERNAL_PROPERTY, property = "type", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = Comment.class, name = "Comment"),
@JsonSubTypes.Type(value = VoiceComment.class, name = "VoiceComment")
@JsonSubTypes.Type(value = VoiceComment.class, name = "VoiceComment"),
@JsonSubTypes.Type(value = VoiceComment.class, name = "TpeVoiceComment")
})
public class Comment implements Serializable {

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/zendesk/client/v2/model/CommentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
/** https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/ */
public enum CommentType {
COMMENT("Comment"),
VOICE_COMMENT("VoiceComment");
VOICE_COMMENT("VoiceComment"),
// Talk Partner Edition
TPE_VOICE_COMMENT("TpeVoiceComment");

private final String name;

Expand Down

0 comments on commit 6aa24d8

Please sign in to comment.