File tree Expand file tree Collapse file tree
src/main/java/com/wildbit/java/postmark/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import com .wildbit .java .postmark .client .data .model .bounces .BounceDump ;
66import com .wildbit .java .postmark .client .data .model .bounces .Bounces ;
77import com .wildbit .java .postmark .client .data .model .bounces .DeliveryStats ;
8+ import com .wildbit .java .postmark .client .data .model .message .BaseMessageResponse ;
89import com .wildbit .java .postmark .client .data .model .message .Message ;
910import com .wildbit .java .postmark .client .data .model .message .MessageResponse ;
1011import com .wildbit .java .postmark .client .data .model .messages .*;
@@ -265,12 +266,12 @@ public InboundMessageDetails getInboundMessageDetails(String id) throws Postmark
265266
266267 public String bypassInboundMessage (String id ) throws PostmarkException , IOException {
267268 String response = execute (HttpClient .REQUEST_TYPES .PUT , getEndpointUrl (inboundMessagesEndpoint + id + "/bypass" ));
268- return dataHandler .fromJson (response , String .class );
269+ return dataHandler .fromJson (response , BaseMessageResponse .class ). getMessage ( );
269270 }
270271
271- public String retryFailedInboundMessage (String id ) throws PostmarkException , IOException {
272+ public String retryFailedInboundMessage ( String id ) throws PostmarkException , IOException {
272273 String response = execute (HttpClient .REQUEST_TYPES .PUT , getEndpointUrl (inboundMessagesEndpoint + id + "/retry" ));
273- return dataHandler .fromJson (response , String .class );
274+ return dataHandler .fromJson (response , BaseMessageResponse .class ). getMessage ( );
274275 }
275276
276277 /*
You can’t perform that action at this time.
0 commit comments