com.cloudesire.platform.apiclient.api.DistributorPricingApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.DistributorPricingDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.PercentagePricingPatchDTO;
import com.cloudesire.platform.apiclient.query.DistributorPricingQuery;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import java.util.List;
import java.util.Map;
public interface DistributorPricingApi
{
@POST( "distributorPricing" )
Call create( @Body DistributorPricingDTO dto );
@GET( "distributorPricing" )
Call> getAll();
@GET( "distributorPricing" )
Call> getAll( @QueryMap DistributorPricingQuery query );
/**
* @deprecated by {@link #getAll(DistributorPricingQuery)}
*/
@GET( "distributorPricing" )
Call> getAll( @QueryMap Map pageRequest );
/**
* @deprecated by {@link #getAll(DistributorPricingQuery)}
*/
@Deprecated
@GET( "distributorPricing" )
Call> getAll(
@Query( "productId" ) Integer productId,
@Query( "catalogId" ) Integer catalogId,
@Query( "deprecated" ) Boolean deprecated,
@QueryMap Map pageRequest
);
@GET( "distributorPricing/{id}" )
Call get( @Path( "id" ) int id );
@PUT( "distributorPricing/{id}" )
Call update( @Path( "id" ) int id, @Body DistributorPricingDTO input );
/**
* @deprecated returns 404
*/
@Deprecated
@PATCH( "distributorPricing" )
Call patch( @Body PercentagePricingPatchDTO input );
@DELETE( "distributorPricing/{id}" )
Call delete( @Path( "id" ) int id );
}