@@ -71,20 +71,20 @@ public void invalidType() throws JsonProcessingException {
7171
7272 private static String createCommentJson (@ Nullable String type ) throws JsonProcessingException {
7373 // https://developer.zendesk.com/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets/
74- ObjectNode voiceData = MAPPER . createObjectNode ()
75- . put ( "from" , "+16617480240" )
76- . put ( "to" , "+16617480123" )
77- .put ("recording_url " , COMMENT_VOICE_URL )
78- .put ("started_at " , "2019-04-16T09:14:57Z " )
79- .put ("call_duration " , 42 )
80- .put ("answered_by_id " , 28765 )
81- .put ("transcription_text " , "The transcription of the call" )
82- .put ("location " , "Topeka, Kansas" );
83-
84- ObjectNode res = MAPPER . createObjectNode ()
85- . put ( "id" , COMMENT_ID )
86- . put ( "body" , "Foo" )
87- .set ("data" , voiceData );
74+ ObjectNode voiceData =
75+ MAPPER
76+ . createObjectNode ( )
77+ .put ("from " , "+16617480240" )
78+ .put ("to " , "+16617480123 " )
79+ .put ("recording_url " , COMMENT_VOICE_URL )
80+ .put ("started_at " , "2019-04-16T09:14:57Z" )
81+ .put ("call_duration " , 42 )
82+ .put ("answered_by_id " , 28765 )
83+ . put ( "transcription_text" , "The transcription of the call" )
84+ . put ( "location" , "Topeka, Kansas" );
85+
86+ ObjectNode res =
87+ MAPPER . createObjectNode (). put ( "id" , COMMENT_ID ). put ( "body" , "Foo" ) .set ("data" , voiceData );
8888
8989 if (type != null ) {
9090 res .put ("type" , type );
0 commit comments