com.cloudesire.platform.apiclient.api.BillingItemApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.BillingItemDTO;
import com.cloudesire.platform.apiclient.query.BillingItemQuery;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import java.util.List;
public interface BillingItemApi
{
@POST( "billingItem" )
Call create( @Body BillingItemDTO source );
@POST( "billingItem" )
Call create( @Body BillingItemDTO source, @Query( "language" ) String language );
@DELETE( "billingItem/{id}" )
Call delete( @Path( "id" ) Integer id );
@GET( "billingItem" )
Call> getAll( @QueryMap BillingItemQuery query );
@GET( "billingItem/identifier={identifier}" )
Call get( @Path( "identifier" ) String identifier );
@GET( "billingItem/{id}" )
Call get( @Path( "id" ) Integer id );
@GET( "billingItem/{id}" )
Call get( @Path( "id" ) Integer id, @Query( "language" ) String language );
@PUT( "billingItem/{id}" )
Call update( @Path( "id" ) Integer id, @Body BillingItemDTO source );
@PUT( "billingItem/{id}" )
Call update( @Path( "id" ) Integer id, @Body BillingItemDTO source, @Query( "language" ) String language );
}