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 .*;
@@ -268,12 +269,12 @@ public InboundMessageDetails getInboundMessageDetails(String id) throws Postmark
268269
269270 public String bypassInboundMessage (String id ) throws PostmarkException , IOException {
270271 String response = execute (HttpClient .REQUEST_TYPES .PUT , getEndpointUrl (inboundMessagesEndpoint + id + "/bypass" ));
271- return dataHandler .fromJson (response , String .class );
272+ return dataHandler .fromJson (response , BaseMessageResponse .class ). getMessage ( );
272273 }
273274
274- public String retryFailedInboundMessage (String id ) throws PostmarkException , IOException {
275+ public String retryFailedInboundMessage ( String id ) throws PostmarkException , IOException {
275276 String response = execute (HttpClient .REQUEST_TYPES .PUT , getEndpointUrl (inboundMessagesEndpoint + id + "/retry" ));
276- return dataHandler .fromJson (response , String .class );
277+ return dataHandler .fromJson (response , BaseMessageResponse .class ). getMessage ( );
277278 }
278279
279280 /*
You can’t perform that action at this time.
0 commit comments