Orders { public Order get(String id) { String url = WxEndpoint.get("shop.order.get"); String body = String.format("{\"order_id\":\"%s\"}", id); logger.debug("shop: get order by id: {}", id); String response = wxClient.post(url, body); OrderWrapper orderWrapper = JsonMapper.defaultMapper().fromJson(response, OrderWrapper.class); return orderWrapper.getOrder(); }  static Orders defaultOrders(); static Orders with(AppSetting appSetting); void setWxClient(WxClient wxClient); Order get(String id); List<Order> query(Integer status, Date start, Date end);  }
@Test public void testGet(){ Order order = Orders.defaultOrders().get("13215171060853012180"); }