package it.integry.integrywmsnative.core.rest.consumers;


import com.google.gson.JsonObject;

import java.util.List;

import it.integry.integrywmsnative.core.rest.model.ServiceRESTResponse;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface EntityRESTConsumerService {

    @POST("processEntity")
    Call<ServiceRESTResponse<JsonObject>> processEntity(@Body Object entity);

    @POST("processEntityList")
    Call<List<ServiceRESTResponse<JsonObject>>> processEntityList(@Query("forceTransaction") boolean singleTransaction, @Body Object entity);

}
