com.cloudesire.platform.apiclient.api.ResellerApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.ResellerDTO;
import com.cloudesire.platform.apiclient.dto.model.patch.BaseCompanyPatchDTO;
import com.cloudesire.platform.apiclient.query.ResellerQuery;
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 ResellerApi
{
@POST( "reseller" )
Call create( @Body ResellerDTO reseller );
@GET( "reseller/{id}" )
Call get( @Path( "id" ) int id );
@GET( "reseller" )
Call> getAll( @QueryMap ResellerQuery query );
/**
* @deprecated by {@link #getAll(ResellerQuery)}
*/
@Deprecated( since = "20240905", forRemoval = true )
@GET( "reseller" )
Call> getAll(
@Query( "textField" ) String textField,
@QueryMap Map pageRequest );
/**
* @deprecated by {@link #getAll(ResellerQuery)}
*/
@Deprecated( since = "20240905", forRemoval = true )
@GET( "reseller" )
Call> getAll(
@Query( "textField" ) String textField,
@Query( "enabled" ) Boolean enabled,
@Query( "distributorId" ) Integer distributorId,
@QueryMap Map pageRequest );
@PUT( "reseller/{id}" )
Call update( @Path( "id" ) int id, @Body ResellerDTO reseller );
@PATCH( "reseller/{id}" )
Call partialUpdate( @Path( "id" ) int id, @Body BaseCompanyPatchDTO patch );
@DELETE( "reseller/{id}" )
Call delete( @Path( "id" ) int id );
@GET( "reseller/{id}/metadata" )
Call