API 1.0.47 Customer.trialDate

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-08-09 15:46:10 +02:00
parent b0ab1b4f77
commit 10c8dd2319
6 changed files with 14 additions and 10 deletions
@@ -117,8 +117,11 @@ class CustomerController ( private val customerRepository: CustomerRepository) {
if (newCustomer.emailSubscription != null) {
updatedCustomer.emailSubscription = newCustomer.emailSubscription
}
if (newCustomer.trial != null) {
updatedCustomer.trial = newCustomer.trial
if (newCustomer.syncedDate != null) {
updatedCustomer.syncedDate = newCustomer.syncedDate
}
if (newCustomer.trialDate != null) {
updatedCustomer.trialDate = newCustomer.trialDate
}
updatedCustomer.sex = newCustomer.sex
updatedCustomer.birthYear = newCustomer.birthYear
@@ -26,8 +26,8 @@ data class Customer (
@Expose var firebaseUid: String? = null,
@Expose var sportId: Int? = null,
@Expose var emailSubscription: Int? = 0,
@Expose var synced_date: String? = null,
@Expose var trial: Boolean? = false,
@Expose var syncedDate: String? = null,
@Expose var trialDate: String? = null,
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Expose var customerId: Long = 0,
)