protected static String reportURL(String type) throws EasyPostException {
    try {
      String urlType = URLEncoder.encode(type, "UTF-8").toLowerCase();
      return String.format("%s/reports/%s/", EasyPost.API_BASE, urlType);
    } catch (java.io.UnsupportedEncodingException e) {
      throw new EasyPostException("Undetermined Report Type");
    }
  }
protected static String reportURL ( String type ) throws EasyPostException { try { String urlType = URLEncoder . encode ( type , "UTF-8" ) . toLowerCase ( ) ; return String . format ( "%s/reports/%s/" , EasyPost . API_BASE , urlType ) ; } catch ( java . io . UnsupportedEncodingException e ) { throw new EasyPostException ( "Undetermined Report Type" ) ; } }
generate report URL pattern