Interface ProductService


  • public interface ProductService
    • Method Detail

      • getProductsWithStockStatus

        @GET("{cloudId}/{warehouseId}/list")
        retrofit2.Call<java.util.Collection<ProductWithStockStatus>> getProductsWithStockStatus​(@Path("cloudId")
                                                                                                java.lang.Long cloudId,
                                                                                                @Path("warehouseId")
                                                                                                long warehouseId,
                                                                                                @Query("limit")
                                                                                                int limit,
                                                                                                @Query("offset")
                                                                                                int offset,
                                                                                                @Query("sort")
                                                                                                java.lang.String sortBy)
      • getProduct

        @GET("{cloudId}/{productId}")
        retrofit2.Call<Product> getProduct​(@Path("cloudId")
                                           java.lang.Long cloudId,
                                           @Path("productId")
                                           java.lang.Long productId)
      • getProductWithStockStatus

        @GET("withstockstatus/{cloudId}/{warehouseId}/{productId}")
        retrofit2.Call<ProductWithStockStatus> getProductWithStockStatus​(@Path("cloudId")
                                                                         java.lang.Long cloudId,
                                                                         @Path("warehouseId")
                                                                         java.lang.Long warehouseId,
                                                                         @Path("productId")
                                                                         java.lang.Long productId)
      • getProductStockStatus

        @GET("stockstatus/{cloudId}/{warehouseId}/{productId}")
        retrofit2.Call<ProductWithStockStatus> getProductStockStatus​(@Path("cloudId")
                                                                     java.lang.Long cloudId,
                                                                     @Path("warehouseId")
                                                                     java.lang.Long warehouseId,
                                                                     @Path("productId")
                                                                     java.lang.Long productId)
      • createProduct

        @Headers({"Content-Type: application/json","Accept: application/json"})
        @POST("{cloudId}/create")
        retrofit2.Call<Product> createProduct​(@Path("cloudId")
                                              java.lang.Long cloudId,
                                              @Body
                                              Product product)
      • deleteProduct

        @GET("{cloudId}/{id}/delete")
        retrofit2.Call<Product> deleteProduct​(@Path("cloudId")
                                              java.lang.Long cloudId,
                                              @Path("id")
                                              java.lang.Long id)
      • updateProduct

        @POST("{cloudId}/{id}/update")
        @Headers({"Content-Type: application/json","Accept: application/json"})
        retrofit2.Call<Product> updateProduct​(@Path("cloudId")
                                              java.lang.Long cloudId,
                                              @Path("id")
                                              java.lang.Long id,
                                              @Body
                                              Product consumer)
      • getProducts

        @GET("{cloudId}")
        retrofit2.Call<java.util.Collection<Product>> getProducts​(@Path("cloudId")
                                                                  java.lang.Long cloudId,
                                                                  @Query("limit")
                                                                  int limit,
                                                                  @Query("offset")
                                                                  int offset,
                                                                  @Query("sort")
                                                                  java.lang.String sortBy)
      • getProductsIngredients

        @GET("{cloudId}/{productId}/ingredients")
        retrofit2.Call<java.util.Collection<ProductWithStockStatus>> getProductsIngredients​(@Path("cloudId")
                                                                                            java.lang.Long cloudId,
                                                                                            @Path("productId")
                                                                                            java.lang.Long productId,
                                                                                            @Query("limit")
                                                                                            int limit,
                                                                                            @Query("offset")
                                                                                            int offset,
                                                                                            @Query("sort")
                                                                                            java.lang.String sortBy)
      • createProductIngredient

        @POST("{cloudId}/{productId}/ingredients/edit")
        retrofit2.Call<Ingredient> createProductIngredient​(@Path("cloudId")
                                                           java.lang.Long cloudId,
                                                           @Body
                                                           ProductIngredient productIngredient)
      • deleteProductIngredient

        @POST("{cloudId}/{productId}/ingredients/{ingredientId}/delete")
        retrofit2.Call<Ingredient> deleteProductIngredient​(@Path("cloudId")
                                                           java.lang.Long cloudId,
                                                           @Path("ingredientId")
                                                           java.lang.Long ingredientId,
                                                           @Body
                                                           ProductIngredient productIngredient)
      • getIngredients

        @GET("{cloudId}/ingredients")
        retrofit2.Call<java.util.Collection<Ingredient>> getIngredients​(@Path("cloudId")
                                                                        java.lang.Long cloudId,
                                                                        @Query("limit")
                                                                        int limit,
                                                                        @Query("offset")
                                                                        int offset,
                                                                        @Query("sort")
                                                                        java.lang.String sortBy)