@@ -28,7 +28,7 @@ import java.util.concurrent.CopyOnWriteArrayList
2828 */
2929class Project internal constructor(jsonObject : JsonObject ) {
3030 /* *
31- * The unique identifier of the Project.
31+ * The unique identifier of the Project
3232 */
3333 lateinit var id: String
3434 private set
@@ -55,7 +55,7 @@ class Project internal constructor(jsonObject: JsonObject) {
5555 private set
5656
5757 /* *
58- * The roundingMode which should be used when doing offline calculations.
58+ * The roundingMode which should be used when doing offline calculations
5959 */
6060 var roundingMode: RoundingMode = RoundingMode .HALF_UP
6161 private set
@@ -67,13 +67,13 @@ class Project internal constructor(jsonObject: JsonObject) {
6767 private set
6868
6969 /* *
70- * The locale in which this currency is used.
70+ * The locale in which this currency is used
7171 */
7272 lateinit var currencyLocale: Locale
7373 private set
7474
7575 /* *
76- * The number of used currency fractions digits.
76+ * The number of used currency fractions digits
7777 */
7878 var currencyFractionDigits = - 1
7979 get() =
@@ -90,27 +90,27 @@ class Project internal constructor(jsonObject: JsonObject) {
9090
9191 /* *
9292 * Parameters in which codes used for offline processing
93- * (for example: Checkout using a QR-Code) should be encoded.
93+ * (for example: Checkout using a QR-Code) should be encoded
9494 */
9595 var encodedCodesOptions: EncodedCodesOptions ? = null
9696 private set
9797
9898 /* *
9999 * List of supported barcode formats used by this retailer. The scanner should restrict its
100- * scanning to include only those formats.
100+ * scanning to include only those formats
101101 */
102102 var supportedBarcodeFormats = emptyList<BarcodeFormat >()
103103 private set
104104
105105 /* *
106- * Indicator if prices should be displayed using the net price instead of the gross price.
106+ * Indicator if prices should be displayed using the net price instead of the gross price
107107 */
108108 var isDisplayingNetPrice = false
109109 private set
110110
111111 /* *
112112 * List of payment method descriptors indicating which
113- * payment methods and providers are available in the Project.
113+ * payment methods and providers are available in the Project
114114 */
115115 var paymentMethodDescriptors: List <PaymentMethodDescriptor > = emptyList()
116116 private set
@@ -126,7 +126,7 @@ class Project internal constructor(jsonObject: JsonObject) {
126126 private set
127127
128128 /* *
129- * Returns the possible accepted cards and if a customer card is required.
129+ * Returns the possible accepted cards and if a customer card is required
130130 */
131131 var customerCardInfo = emptyList<CustomerCardInfo >()
132132 private set
@@ -141,7 +141,7 @@ class Project internal constructor(jsonObject: JsonObject) {
141141 private set
142142
143143 /* *
144- * Sets the customer card number for user identification with the backend.
144+ * Sets the customer card number for user identification with the backend
145145 */
146146 var customerCardId: String? = null
147147 set(value) {
@@ -171,13 +171,13 @@ class Project internal constructor(jsonObject: JsonObject) {
171171
172172 /* *
173173 * List of code templates that are used when supplying an existing Product with a different
174- * barcode which contains a reduced price.
174+ * barcode which contains a reduced price
175175 */
176176 var priceOverrideTemplates = emptyList<PriceOverrideTemplate >()
177177 private set
178178
179179 /* *
180- * List of code templates that are searchable using the barcode search functionality.
180+ * List of code templates that are searchable using the barcode search functionality
181181 */
182182 var searchableTemplates = emptyList<String >()
183183 private set
@@ -198,7 +198,7 @@ class Project internal constructor(jsonObject: JsonObject) {
198198 private set
199199
200200 /* *
201- * Url to retrieve authentication tokens.
201+ * Url to retrieve authentication tokens
202202 */
203203 var tokensUrl: String? = null
204204 private set
@@ -301,13 +301,13 @@ class Project internal constructor(jsonObject: JsonObject) {
301301 private set
302302
303303 /* *
304- * The primary product database of this project.
304+ * The primary product database of this project
305305 */
306306 lateinit var productDatabase: ProductDatabase
307307 private set
308308
309309 /* *
310- * Event logger which ships logging data to the snabble backend.
310+ * Event logger which ships logging data to the snabble backend
311311 */
312312 lateinit var events: Events
313313 private set
@@ -323,7 +323,7 @@ class Project internal constructor(jsonObject: JsonObject) {
323323 }
324324
325325 /* *
326- * Parse a json definition of a Project.
326+ * Parse a json definition of a Project
327327 */
328328 fun parse (jsonObject : JsonObject ) {
329329 id = requireNotNull(jsonObject[" id" ]?.asString) { " Project has no id" }
@@ -563,7 +563,7 @@ class Project internal constructor(jsonObject: JsonObject) {
563563 }
564564
565565 /* *
566- * List of payment methods that should be available to the user.
566+ * List of payment methods that should be available to the user
567567 */
568568 val availablePaymentMethods
569569 get() = paymentMethodDescriptors.map { it.paymentMethod }
@@ -589,22 +589,22 @@ class Project internal constructor(jsonObject: JsonObject) {
589589 }
590590
591591 /* *
592- * Get text included in the metadata.
592+ * Get text included in the metadata
593593 */
594594 @JvmOverloads
595595 fun getText (key : String , defaultValue : String? = null) =
596596 texts[key] ? : defaultValue
597597
598598 /* *
599- * Logs a event tagged with error to the snabble Backend.
599+ * Logs a event tagged with error to the snabble Backend
600600 */
601601 fun logErrorEvent (format : String? , vararg args : Any? ) {
602602 Logger .e(format, * args)
603603 events.logError(format, * args)
604604 }
605605
606606 /* *
607- * Logs a event to the snabble Backend.
607+ * Logs a event to the snabble Backend
608608 */
609609 fun logEvent (format : String? , vararg args : Any? ) {
610610 Logger .e(format, * args)
0 commit comments