From d71fb9e6d5c19370483853ebaf7b2e6e47eea4ab Mon Sep 17 00:00:00 2001 From: Bossanyi Tibor Date: Wed, 14 Apr 2021 23:25:35 +0200 Subject: [PATCH] API 1.0.30+3 Customer properties must not be changed --- src/main/kotlin/com/aitrainer/api/model/Customer.kt | 4 ++-- src/test/kotlin/com/aitrainer/api/test/CustomerTests.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/aitrainer/api/model/Customer.kt b/src/main/kotlin/com/aitrainer/api/model/Customer.kt index 13dfab5..c8a9b30 100644 --- a/src/main/kotlin/com/aitrainer/api/model/Customer.kt +++ b/src/main/kotlin/com/aitrainer/api/model/Customer.kt @@ -16,8 +16,8 @@ data class Customer ( @Expose var dateAdd: String? = null, @Expose var dateChange: String? = null, @Expose var dataPolicyAllowed: Int? = 1, - @Expose var admin: Boolean? = null, - @Expose var trainer: Boolean? = null, + @Expose var admin: Int? = null, + @Expose var trainer: Int? = null, @Expose var trainerId: Long? = null, @Expose var password: String? = null, @Expose var birthYear:Int = 0, diff --git a/src/test/kotlin/com/aitrainer/api/test/CustomerTests.kt b/src/test/kotlin/com/aitrainer/api/test/CustomerTests.kt index 403ef56..0d0f3c1 100644 --- a/src/test/kotlin/com/aitrainer/api/test/CustomerTests.kt +++ b/src/test/kotlin/com/aitrainer/api/test/CustomerTests.kt @@ -102,7 +102,7 @@ class CustomerTests { customer.customerId = id customer.firstname = "Tib" customer.name = "Bossi" - customer.admin = true + customer.admin = 1 customer.active = "Y" customer.sex = "m" @@ -139,7 +139,7 @@ class CustomerTests { customer.password = null customer.firstname = "Tib" customer.name = "Bossi" - customer.admin = true + customer.admin = 1 customer.sex = "m" customer.fitnessLevel = "intermediate" //customer.weight = 79