Skip to content

Commit

Permalink
update ticket section
Browse files Browse the repository at this point in the history
  • Loading branch information
dagostinisy committed Aug 20, 2024
1 parent 0edbe78 commit 5eb3613
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions android-docs/docs/v2/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,7 @@ suspend fun getTicketMy(
search: String? = null,
manager: String? = null,
status: String? = null,
)
): Resource<List<Ticket>>
```

where params are:
Expand All @@ -2167,7 +2167,7 @@ the resulting **ResponseMessage** contains a `List<Ticket>`
```kotlin
suspend fun getTicketFormManager(
manager: String
)
): Resource<List<FormTicket>>
```

where param is:
Expand All @@ -2176,14 +2176,32 @@ where param is:

the resulting **ResponseMessage** contains a `List<FormTicket>`

### 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<FormTicket>
): Resource<List<FormTicket>>
```

where param is:

- `manager` the ticket manager type ("INTERNAL", "IVIVA")
- `body` the current form

the resulting **ResponseMessage** contains the updated form `List<FormTicket>`

`getTicketById` return the detail ticket.
### 12.5 getTicketById

`getTicketById` return the detail of the ticket.

```kotlin
suspend fun getTicketById(
id: String,
)
): Resource<Ticket>
```

where param is:
Expand All @@ -2192,17 +2210,17 @@ 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(
manager: String,
image: MultipartBody.Part? = null,
sound: MultipartBody.Part? = null,
form: MultipartBody.Part?
)
): Resource<List<FormTicket>>
```

where params are:
Expand All @@ -2214,14 +2232,14 @@ where params are:

the resulting **ResponseMessage** contains a `<List<FormTicket>>`

### 12.5 deleteTicket
### 12.7 deleteTicket

`deleteTicket` delete a ticket.
`deleteTicket` to delete a ticket.

```kotlin
suspend fun deleteTicket(
id: String,
)
): Resource<Ticket>
```

where:
Expand Down

0 comments on commit 5eb3613

Please sign in to comment.