Closed dimaloop closed 2 years ago
Also:
Thank you for an answer!
Feel free to edit my code, if it is possible
StringJoiner query = new StringJoiner("&","?", "");
query.setEmptyValue("");
Assert.assertEquals("", query.toString());
query.add("test1");
query.add("test2");
Assert.assertEquals("?test1&test2", query.toString());
Ohh, you right. With emptyValue it works as expected
I cannot split the following changes in another PR while current is open (don't know how, sorry), so there are new changes:
[+] added CARD type to Payment [+] extended TYPEs and fields of ReceiptModel according to api specs [+] added value/extraValue fields to ReportTaxesModel
Great!
One more thing: I cannot find serial
in the documentation and my test shows that it doesn't work.
By the way, as I remember CARD
is deprecated, and CASHLESS
should be used instead. But anyway, if it exists in docs it's a good idea to have it in enums.
type | string (Готівкова форма оплати (CASH))Enum: "CASH" "CARD" "CASHLESS"An enumeration. |
---|
Ok, confirmed. API documentation is a bit unclear
I will remove this type
BTW, "label" - required field, without them, I've got error
Hello, please review this PR
this is my first PR, I will be grateful for the comments, if something is not correct