From c57598a3f50afb69e13169206a4b7e2253dd3c46 Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Sun, 31 Mar 2024 13:01:14 +0530 Subject: [PATCH] ADST-49 (#68) * update model key for in payload request * updated value key for few models --- .../com/alfresco/process/models/RequestCreateProcessInstance.kt | 2 +- .../main/kotlin/com/alfresco/process/models/RequestOutcomes.kt | 2 +- .../main/kotlin/com/alfresco/process/models/RequestSaveForm.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/process/src/main/kotlin/com/alfresco/process/models/RequestCreateProcessInstance.kt b/process/src/main/kotlin/com/alfresco/process/models/RequestCreateProcessInstance.kt index 3be62c6..57ae0ec 100644 --- a/process/src/main/kotlin/com/alfresco/process/models/RequestCreateProcessInstance.kt +++ b/process/src/main/kotlin/com/alfresco/process/models/RequestCreateProcessInstance.kt @@ -12,5 +12,5 @@ import com.squareup.moshi.JsonClass data class RequestCreateProcessInstance( @Json(name = "name") @field:Json(name = "name") var name: String? = null, @Json(name = "processDefinitionId") @field:Json(name = "processDefinitionId") var processDefinitionId: String? = null, - @Json(name = "values") @field:Json(name = "values") var values: ValuesModel? = null + @Json(name = "values") @field:Json(name = "values") var values: Map? = null ) diff --git a/process/src/main/kotlin/com/alfresco/process/models/RequestOutcomes.kt b/process/src/main/kotlin/com/alfresco/process/models/RequestOutcomes.kt index baa1d7a..c194a6e 100644 --- a/process/src/main/kotlin/com/alfresco/process/models/RequestOutcomes.kt +++ b/process/src/main/kotlin/com/alfresco/process/models/RequestOutcomes.kt @@ -9,6 +9,6 @@ import com.squareup.moshi.JsonClass */ @JsonClass(generateAdapter = true) data class RequestOutcomes( - @Json(name = "values") @field:Json(name = "values") var values: ValuesModel? = null, + @Json(name = "values") @field:Json(name = "values") var values: Map? = null, @Json(name = "outcome") @field:Json(name = "outcome") var outcome: String? = null ) diff --git a/process/src/main/kotlin/com/alfresco/process/models/RequestSaveForm.kt b/process/src/main/kotlin/com/alfresco/process/models/RequestSaveForm.kt index fcf9a24..9fefe6c 100644 --- a/process/src/main/kotlin/com/alfresco/process/models/RequestSaveForm.kt +++ b/process/src/main/kotlin/com/alfresco/process/models/RequestSaveForm.kt @@ -8,5 +8,5 @@ import com.squareup.moshi.JsonClass */ @JsonClass(generateAdapter = true) data class RequestSaveForm( - @Json(name = "values") @field:Json(name = "values") var values: ValuesModel? = null + @Json(name = "values") @field:Json(name = "values") var values: Map? = null )