From 476e4f4f7a3592c5e8a1316ed946155ff5ce349d Mon Sep 17 00:00:00 2001 From: Enrico Date: Tue, 10 Sep 2024 15:38:46 +0200 Subject: [PATCH] fix: Make org unit code nullable [DHIS2-17715] --- build.gradle.kts | 2 +- .../kotlin/org/hisp/dhis/rules/models/RuleEnrollment.kt | 2 +- src/jsMain/kotlin/org/hisp/dhis/rules/RuleEnrollmentJs.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1fb044fa..16c711e7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ repositories { maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } } -version = "3.0.0-SNAPSHOT" +version = "3.0.1-SNAPSHOT" group = "org.hisp.dhis.rules" if (project.hasProperty("removeSnapshotSuffix")) { diff --git a/src/commonMain/kotlin/org/hisp/dhis/rules/models/RuleEnrollment.kt b/src/commonMain/kotlin/org/hisp/dhis/rules/models/RuleEnrollment.kt index e146de3d..12382f4e 100644 --- a/src/commonMain/kotlin/org/hisp/dhis/rules/models/RuleEnrollment.kt +++ b/src/commonMain/kotlin/org/hisp/dhis/rules/models/RuleEnrollment.kt @@ -9,6 +9,6 @@ data class RuleEnrollment( val enrollmentDate: LocalDate, val status: RuleEnrollmentStatus, val organisationUnit: String, - val organisationUnitCode: String, + val organisationUnitCode: String?, val attributeValues: List ) diff --git a/src/jsMain/kotlin/org/hisp/dhis/rules/RuleEnrollmentJs.kt b/src/jsMain/kotlin/org/hisp/dhis/rules/RuleEnrollmentJs.kt index c0bc91df..940f65a5 100644 --- a/src/jsMain/kotlin/org/hisp/dhis/rules/RuleEnrollmentJs.kt +++ b/src/jsMain/kotlin/org/hisp/dhis/rules/RuleEnrollmentJs.kt @@ -11,6 +11,6 @@ data class RuleEnrollmentJs( val enrollmentDate: kotlinx.datetime.internal.JSJoda.LocalDate, val status: RuleEnrollmentStatus, val organisationUnit: String, - val organisationUnitCode: String, + val organisationUnitCode: String?, val attributeValues: Array )