From 710e5b1e2d09713457da29bb85c0d9b7cc69fce4 Mon Sep 17 00:00:00 2001 From: Eyal Halahmi Date: Sun, 18 Aug 2024 19:14:01 +0300 Subject: [PATCH] Update LidbOrder.java The current file has a critical bug so that the function LidbOrder.get is not usable and gets a ClassCastException. This change fixes it. --- src/main/java/com/bandwidth/iris/sdk/model/LidbOrder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 45fac0b..4a2a9dc 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; }