@@ -231,7 +231,7 @@ public String getReportTextById(String id)
231231
232232 public String getReportXMLById (String id )
233233 {
234- return getForString (URI .create (apiPrefix + REPORTS_PATH + "/" + id + "/xml" ));
234+ return getForString (URI .create (apiPrefix + REPORTS_PATH + "/" + id + "/xml" ));
235235 }
236236
237237 public String getReceiptHtmlById (String id )
@@ -241,7 +241,7 @@ public String getReceiptHtmlById(String id)
241241
242242 public String getReceiptHtmlById (String id ,boolean isSimple )
243243 {
244- return getForString (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id +"/html" +(isSimple ? "?simple=true" : "" )));
244+ return getForString (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/html" + (isSimple ? "?simple=true" : "" )));
245245 }
246246
247247 public String getReceiptTextById (String id ,int width )
@@ -267,21 +267,21 @@ public byte[] getReceiptPngById(String id,int charsCount, int paperWidth)
267267 {
268268 StringJoiner parameters = new StringJoiner ("&" ,"?" ,"" );
269269 parameters .setEmptyValue ("" );
270- if (charsCount >= MIN_CHARS_PNG_RECEIPT && MAX_CHARS_PNG_RECEIPT <= 100 )
270+ if (charsCount >= MIN_CHARS_PNG_RECEIPT && MAX_CHARS_PNG_RECEIPT <= 100 )
271271 parameters .add ("width=" +charsCount );
272- if (paperWidth >= MIN_WIDTH_PNG_RECEIPT && MAX_WIDTH_PNG_RECEIPT <= 80 )
273- parameters .add ("paper_width=" + paperWidth );
274- return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/png" +parameters ));
272+ if (paperWidth >= MIN_WIDTH_PNG_RECEIPT && MAX_WIDTH_PNG_RECEIPT <= 80 )
273+ parameters .add ("paper_width=" + paperWidth );
274+ return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/png" +parameters ));
275275 }
276276
277277 public byte [] getReceiptPdfById (String id )
278278 {
279- return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/pdf" ));
279+ return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/pdf" ));
280280 }
281281
282282 public byte [] getReceiptQRCodeById (String id )
283283 {
284- return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/qrcode" ));
284+ return getForBytes (URI .create (apiPrefix + RECEIPTS_PATH + "/" + id + "/qrcode" ));
285285 }
286286
287287 private <T > T postForObject (Class <T > returnType , URI uri , int successHttpCode )
0 commit comments