diff --git a/src/main/java/com/bandwidth/iris/sdk/model/LidbOrder.java b/src/main/java/com/bandwidth/iris/sdk/model/LidbOrder.java index 2a80a39..deb1fe2 100644 --- a/src/main/java/com/bandwidth/iris/sdk/model/LidbOrder.java +++ b/src/main/java/com/bandwidth/iris/sdk/model/LidbOrder.java @@ -45,9 +45,8 @@ public static LidbOrder create(IrisClient client, LidbOrder order) throws Except } public static LidbOrder get(IrisClient client, String orderId) throws Exception { - LidbOrderResponse orderResponse = client.get(client.buildAccountModelUri( - new String[] { IrisPath.LIDB_ORDER_URI_PATH, orderId }), LidbOrderResponse.class); - LidbOrder order = orderResponse.getOrder(); + LidbOrder order = client.get(client.buildAccountModelUri( + new String[] { IrisPath.LIDB_ORDER_URI_PATH, orderId }), LidbOrder.class); order.setClient(client); return order; } diff --git a/src/test/java/com/bandwidth/iris/sdk/IrisClientTestUtils.java b/src/test/java/com/bandwidth/iris/sdk/IrisClientTestUtils.java index abb91d1..b65c7b2 100644 --- a/src/test/java/com/bandwidth/iris/sdk/IrisClientTestUtils.java +++ b/src/test/java/com/bandwidth/iris/sdk/IrisClientTestUtils.java @@ -674,7 +674,7 @@ public class IrisClientTestUtils { */ public static String validLidbOrderRequestXml = " 4352154856 Steve RESIDENTIAL PUBLIC 4352154855 Steve RESIDENTIAL PUBLIC "; - public static String validLidbOrderResponseXml = " 2dda315b-e669-459b-940c-a76760d60906 2014-07-13T17:48:10.043Z 12346099 jbm 2dda315b-e669-459b-940c-a76760d60906 2014-07-13T17:48:10.043Z RECEIVED 4352169755 Steve RESIDENTIAL PUBLIC 4352721843 Steve RESIDENTIAL PUBLIC "; + public static String validLidbOrderResponseXml = " 2dda315b-e669-459b-940c-a76760d60906 2014-07-13T17:48:10.043Z 12346099 jbm 2dda315b-e669-459b-940c-a76760d60906 2014-07-13T17:48:10.043Z RECEIVED 4352169755 Steve RESIDENTIAL PUBLIC 4352721843 Steve RESIDENTIAL PUBLIC "; /** * Dlda Order Xmls