From cc39ba274c672ce2d57f4c8150d1b3fdde99eaba Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Thu, 16 Nov 2023 10:08:08 +0100 Subject: [PATCH] refs #5870 operator --- .../main/java/es/verdnatura/domain/SalixService.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/es/verdnatura/domain/SalixService.kt b/app/src/main/java/es/verdnatura/domain/SalixService.kt index c29b7966..0d1a4ca5 100644 --- a/app/src/main/java/es/verdnatura/domain/SalixService.kt +++ b/app/src/main/java/es/verdnatura/domain/SalixService.kt @@ -68,8 +68,9 @@ interface SalixService { fun getCollectionSalix( ): Call> - @GET("Addresses/getAddress") + @GET("AddressShortages") fun getAddressSalix( + @Query("filter") filter:String ): Call> @GET("Buyers") @@ -195,7 +196,7 @@ interface SalixService { @POST("Shelvings/upsertWithWhere") fun updateShelvingPriority( - @Query("where") where: String, + @Query("where") where: Any, @Body params: Any ): Call @@ -289,7 +290,7 @@ interface SalixService { @Multipart fun uploadImage( @Query("collection") collection: String, - @Query("id") id: Int, + @Query("id") id: Number, @Part filePart: MultipartBody.Part, ): Call @@ -299,10 +300,11 @@ interface SalixService { @Path("id") id: Number, @Body params: Any ): Call - @GET("Operators") + @GET("Operators/{id}") fun operator_getData( - @Query("filter") filter: String - ): Call> + @Path("id") id: Number, + @Query("filter") filter:String + ): Call @GET("AccessTokenConfigs") fun getAccessTokenConfigs(