From 5eb36138ef0428a5b25fb8432d885de8f9e50cde Mon Sep 17 00:00:00 2001 From: Davide Agostini Date: Tue, 20 Aug 2024 16:58:14 +0200 Subject: [PATCH] update ticket section --- android-docs/docs/v2/v2.md | 40 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/android-docs/docs/v2/v2.md b/android-docs/docs/v2/v2.md index 02eba40..dd725e5 100644 --- a/android-docs/docs/v2/v2.md +++ b/android-docs/docs/v2/v2.md @@ -2149,7 +2149,7 @@ suspend fun getTicketMy( search: String? = null, manager: String? = null, status: String? = null, -) +): Resource> ``` where params are: @@ -2167,7 +2167,7 @@ the resulting **ResponseMessage** contains a `List` ```kotlin suspend fun getTicketFormManager( manager: String -) +): Resource> ``` where param is: @@ -2176,14 +2176,32 @@ where param is: the resulting **ResponseMessage** contains a `List` -### 12.4 getTicketById +### 12.4 updateTicketFormManager + +For dynamically updating the fields of the form based on the user's choices, the `updateTicketFormManager` API must be called, which simply returns a new form updated with the correct values and fields. + +```kotlin +suspend fun updateTicketFormManager( + manager: String, + body: List +): Resource> +``` + +where param is: + +- `manager` the ticket manager type ("INTERNAL", "IVIVA") +- `body` the current form + +the resulting **ResponseMessage** contains the updated form `List` -`getTicketById` return the detail ticket. +### 12.5 getTicketById + +`getTicketById` return the detail of the ticket. ```kotlin suspend fun getTicketById( id: String, -) +): Resource ``` where param is: @@ -2192,9 +2210,9 @@ where param is: the resulting **ResponseMessage** contains a `FormTicket` -### 12.4 saveTicket +### 12.6 saveTicket -`saveTicket` save ticket to backend. +`saveTicket` to save a ticket to the backend. ```kotlin suspend fun saveTicket( @@ -2202,7 +2220,7 @@ suspend fun saveTicket( image: MultipartBody.Part? = null, sound: MultipartBody.Part? = null, form: MultipartBody.Part? -) +): Resource> ``` where params are: @@ -2214,14 +2232,14 @@ where params are: the resulting **ResponseMessage** contains a `>` -### 12.5 deleteTicket +### 12.7 deleteTicket -`deleteTicket` delete a ticket. +`deleteTicket` to delete a ticket. ```kotlin suspend fun deleteTicket( id: String, -) +): Resource ``` where: