com.cloudesire.platform.apiclient.api.ProceedsReportApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.ProceedsReportLineDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.VendorOrderLineDTO;
import com.cloudesire.platform.apiclient.query.ProceedsReportQuery;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.HEAD;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import retrofit2.http.Streaming;
import java.util.List;
public interface ProceedsReportApi
{
@HEAD( "proceedsReport" )
Call headAll( @QueryMap ProceedsReportQuery query );
@GET( "proceedsReport" )
Call> getAll();
@GET( "proceedsReport" )
Call> getAll( @QueryMap ProceedsReportQuery query );
@Streaming
@GET( "proceedsReport" )
@Headers( { "Accept:text/csv" } )
Call getCsv();
@Streaming
@GET( "proceedsReport" )
@Headers( { "Accept:text/csv" } )
Call getCsv( @QueryMap ProceedsReportQuery query );
@POST( "proceedsReport" )
Call post( @Body List lines );
@DELETE( "proceedsReport/{subscriptionId}/{tag}/{value}" )
Call delete(
@Path( "subscriptionId" ) int subscriptionId,
@Path( "tag" ) String tag,
@Path( "value" ) String value
);
/**
* @deprecated by {@link #delete(int, String, String)}
*/
@DELETE( "proceedsReport/{subscriptionId}/{tag}" )
@Deprecated( since = "3.1.0", forRemoval = true )
Call delete( @Path( "subscriptionId" ) int subscriptionId, @Path( "tag" ) String tag );
}