com.cloudesire.platform.apiclient.api.ResellerPricingApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.PercentagePricingPatchDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.ResellerPricingDTO;
import com.cloudesire.platform.apiclient.query.ResellerPricingQuery;
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 ResellerPricingApi
{
@POST( "resellerPricing" )
Call create( @Body ResellerPricingDTO dto );
@GET( "resellerPricing" )
Call> getAll();
@GET( "resellerPricing" )
Call> getAll( @QueryMap ResellerPricingQuery query );
/**
* @deprecated by {@link #getAll(ResellerPricingQuery)}
*/
@GET( "resellerPricing" )
@Deprecated
Call> getAll(
@Query( "resellerId" ) Integer resellerId,
@QueryMap Map pageRequest
);
/**
* @deprecated by {@link #getAll(ResellerPricingQuery)}
*/
@GET( "resellerPricing" )
@Deprecated
Call> getAll(
@Query( "unpriced" ) Boolean unpriced,
@QueryMap Map pageRequest
);
/**
* @deprecated by {@link #getAll(ResellerPricingQuery)}
*/
@GET( "resellerPricing" )
@Deprecated
Call> getAll(
@Query( "resellerId" ) Integer resellerId,
@Query( "catalogId" ) Integer catalogId,
@Query( "productId" ) Integer productId,
@Query( "unpriced" ) Boolean unpriced,
@QueryMap Map pageRequest
);
@GET( "resellerPricing/{id}" )
Call get( @Path( "id" ) int id );
@PUT( "resellerPricing/{id}" )
Call update( @Path( "id" ) int id, @Body ResellerPricingDTO input );
/**
* @deprecated returns 404
*/
@Deprecated
@PATCH( "resellerPricing" )
Call patch( @Body PercentagePricingPatchDTO input );
@DELETE( "resellerPricing/{id}" )
Call delete( @Path( "id" ) int id );
}