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

import java.util.List;

import it.integry.integrywmsnative.core.model.DtbDoct;
import it.integry.integrywmsnative.core.rest.model.LoadColliDTO;
import it.integry.integrywmsnative.core.rest.model.ServiceRESTResponse;
import it.integry.integrywmsnative.core.rest.model.documento.RetrieveDocumentoArtsResponseDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface DocumentiRESTConsumerService {

    @POST("getDatiColliForDocs")
    Call<ServiceRESTResponse<List<DtbDoct>>> createDocsFromColli(@Body List<LoadColliDTO> listColli);

    @POST("createDocFromColli")
    Call<ServiceRESTResponse<DtbDoct>> createDocFromColli(@Body LoadColliDTO listColli);




    @GET("wms/documento/arts")
    Call<ServiceRESTResponse<RetrieveDocumentoArtsResponseDTO>> retrieveArts(
            @Query("codDtip") String codDtip,
            @Query("codMgrp") String codMgrp,
            @Query("codAnagForn") String codAnagForn);

}
